text stringlengths 9 39.2M | dir stringlengths 26 295 | lang stringclasses 185
values | created_date timestamp[us] | updated_date timestamp[us] | repo_name stringlengths 1 97 | repo_full_name stringlengths 7 106 | star int64 1k 183k | len_tokens int64 1 13.8M |
|---|---|---|---|---|---|---|---|---|
```javascript
'use strict'
/*
* This is a basic example demonstrating how to leverage the metadata supplied by rule results
*
* Usage:
* node ./examples/09-rule-results.js
*
* For detailed output:
* DEBUG=json-rules-engine node ./examples/09-rule-results.js
*/
require('colors')
const { Engine } = require('j... | /content/code_sandbox/examples/09-rule-results.js | javascript | 2016-01-26T00:55:41 | 2024-08-16T15:48:12 | json-rules-engine | CacheControl/json-rules-engine | 2,561 | 787 |
```javascript
'use strict'
/*
* This example demonstrates using custom operators.
*
* A custom operator is created for detecting whether the word starts with a particular letter,
* and a 'word' fact is defined for providing the test string
*
* In this example, Facts are passed to run() as constants known at runti... | /content/code_sandbox/examples/06-custom-operators.js | javascript | 2016-01-26T00:55:41 | 2024-08-16T15:48:12 | json-rules-engine | CacheControl/json-rules-engine | 2,561 | 634 |
```javascript
'use strict'
require('colors')
const accountData = {
washington: {
company: 'microsoft',
status: 'terminated',
ptoDaysTaken: ['2016-12-25', '2016-04-01'],
createdAt: '2012-02-14'
},
jefferson: {
company: 'apple',
status: 'terminated',
ptoDaysTaken: ['2015-01-25'],
c... | /content/code_sandbox/examples/support/account-api-client.js | javascript | 2016-01-26T00:55:41 | 2024-08-16T15:48:12 | json-rules-engine | CacheControl/json-rules-engine | 2,561 | 249 |
```javascript
'use strict'
import hash from 'hash-it'
class Fact {
/**
* Returns a new fact instance
* @param {string} id - fact unique identifer
* @param {object} options
* @param {boolean} options.cache - whether to cache the fact's value for future rules
* @param {primitive|function} valueOrMe... | /content/code_sandbox/src/fact.js | javascript | 2016-01-26T00:55:41 | 2024-08-16T15:48:12 | json-rules-engine | CacheControl/json-rules-engine | 2,561 | 714 |
```javascript
'use strict'
import Operator from './operator'
const Operators = []
Operators.push(new Operator('equal', (a, b) => a === b))
Operators.push(new Operator('notEqual', (a, b) => a !== b))
Operators.push(new Operator('in', (a, b) => b.indexOf(a) > -1))
Operators.push(new Operator('notIn', (a, b) => b.indexO... | /content/code_sandbox/src/engine-default-operators.js | javascript | 2016-01-26T00:55:41 | 2024-08-16T15:48:12 | json-rules-engine | CacheControl/json-rules-engine | 2,561 | 257 |
```javascript
'use strict'
import Fact from './fact'
import Rule from './rule'
import Operator from './operator'
import Almanac from './almanac'
import EventEmitter from 'eventemitter2'
import defaultOperators from './engine-default-operators'
import debug from './debug'
import Condition from './condition'
export con... | /content/code_sandbox/src/engine.js | javascript | 2016-01-26T00:55:41 | 2024-08-16T15:48:12 | json-rules-engine | CacheControl/json-rules-engine | 2,561 | 2,708 |
```javascript
'use strict'
export class UndefinedFactError extends Error {
constructor (...props) {
super(...props)
this.code = 'UNDEFINED_FACT'
}
}
``` | /content/code_sandbox/src/errors.js | javascript | 2016-01-26T00:55:41 | 2024-08-16T15:48:12 | json-rules-engine | CacheControl/json-rules-engine | 2,561 | 35 |
```javascript
'use strict'
import Condition from './condition'
import RuleResult from './rule-result'
import debug from './debug'
import deepClone from 'clone'
import EventEmitter from 'eventemitter2'
class Rule extends EventEmitter {
/**
* returns a new Rule instance
* @param {object,string} options, or json... | /content/code_sandbox/src/rule.js | javascript | 2016-01-26T00:55:41 | 2024-08-16T15:48:12 | json-rules-engine | CacheControl/json-rules-engine | 2,561 | 2,994 |
```javascript
import Engine from './engine'
import Fact from './fact'
import Rule from './rule'
import Operator from './operator'
import Almanac from './almanac'
export { Fact, Rule, Operator, Engine, Almanac }
export default function (rules, options) {
return new Engine(rules, options)
}
``` | /content/code_sandbox/src/json-rules-engine.js | javascript | 2016-01-26T00:55:41 | 2024-08-16T15:48:12 | json-rules-engine | CacheControl/json-rules-engine | 2,561 | 65 |
```javascript
'use strict'
import debug from './debug'
export default class Condition {
constructor (properties) {
if (!properties) throw new Error('Condition: constructor options required')
const booleanOperator = Condition.booleanOperator(properties)
Object.assign(this, properties)
if (booleanOper... | /content/code_sandbox/src/condition.js | javascript | 2016-01-26T00:55:41 | 2024-08-16T15:48:12 | json-rules-engine | CacheControl/json-rules-engine | 2,561 | 1,278 |
```javascript
'use strict'
import deepClone from 'clone'
import isObject from 'lodash.isobjectlike'
export default class RuleResult {
constructor (conditions, event, priority, name) {
this.conditions = deepClone(conditions)
this.event = deepClone(event)
this.priority = deepClone(priority)
this.name ... | /content/code_sandbox/src/rule-result.js | javascript | 2016-01-26T00:55:41 | 2024-08-16T15:48:12 | json-rules-engine | CacheControl/json-rules-engine | 2,561 | 268 |
```javascript
export default function debug (message) {
try {
if ((typeof process !== 'undefined' && process.env && process.env.DEBUG && process.env.DEBUG.match(/json-rules-engine/)) ||
(typeof window !== 'undefined' && window.localStorage && window.localStorage.debug && window.localStorage.debug.match(/j... | /content/code_sandbox/src/debug.js | javascript | 2016-01-26T00:55:41 | 2024-08-16T15:48:12 | json-rules-engine | CacheControl/json-rules-engine | 2,561 | 91 |
```javascript
'use strict'
module.exports = require('./json-rules-engine')
``` | /content/code_sandbox/src/index.js | javascript | 2016-01-26T00:55:41 | 2024-08-16T15:48:12 | json-rules-engine | CacheControl/json-rules-engine | 2,561 | 14 |
```javascript
'use strict'
export default class Operator {
/**
* Constructor
* @param {string} name - operator identifier
* @param {function(factValue, jsonValue)} callback - operator evaluation method
* @param {function} [factValueValidator] - optional validator for asserting the data type of the fac... | /content/code_sandbox/src/operator.js | javascript | 2016-01-26T00:55:41 | 2024-08-16T15:48:12 | json-rules-engine | CacheControl/json-rules-engine | 2,561 | 277 |
```javascript
'use strict'
import Fact from './fact'
import { UndefinedFactError } from './errors'
import debug from './debug'
import { JSONPath } from 'jsonpath-plus'
import isObjectLike from 'lodash.isobjectlike'
function defaultPathResolver (value, path) {
return JSONPath({ path, json: value, wrap: false })
}
... | /content/code_sandbox/src/almanac.js | javascript | 2016-01-26T00:55:41 | 2024-08-16T15:48:12 | json-rules-engine | CacheControl/json-rules-engine | 2,561 | 1,485 |
```qmake
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in D:\Users\rick.wang.E-BAO\AppData\Local\Android\sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# F... | /content/code_sandbox/library/proguard-rules.pro | qmake | 2016-06-28T02:38:47 | 2024-08-06T03:00:15 | NumberPickerView | Carbs0126/NumberPickerView | 1,172 | 150 |
```java
package cn.carbswang.android.numberpickerview;
import android.content.res.AssetManager;
import android.graphics.Typeface;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.os.Message;
import androidx.appcompat.app.AppCompatActivity;
import android.view.View;
import... | /content/code_sandbox/app/src/main/java/cn/carbswang/android/numberpickerview/ActivityTimePicker.java | java | 2016-06-28T02:38:47 | 2024-08-06T03:00:15 | NumberPickerView | Carbs0126/NumberPickerView | 1,172 | 936 |
```java
package cn.carbswang.android.numberpickerview;
import android.content.Intent;
import android.content.res.AssetManager;
import android.graphics.Typeface;
import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.widget.Button;
... | /content/code_sandbox/app/src/main/java/cn/carbswang/android/numberpickerview/ActivityMain.java | java | 2016-06-28T02:38:47 | 2024-08-06T03:00:15 | NumberPickerView | Carbs0126/NumberPickerView | 1,172 | 1,261 |
```java
package cn.carbswang.android.numberpickerview;
import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;
import cn.carbswang.android.numberpickerview.library.NumberPickerVie... | /content/code_sandbox/app/src/main/java/cn/carbswang/android/numberpickerview/DialogNPV.java | java | 2016-06-28T02:38:47 | 2024-08-06T03:00:15 | NumberPickerView | Carbs0126/NumberPickerView | 1,172 | 582 |
```java
/**
* github : path_to_url
*/
package cn.carbswang.android.numberpickerview.library;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Paint.Align;
import android.graphics.Typeface;
import android.gra... | /content/code_sandbox/library/src/main/java/cn/carbswang/android/numberpickerview/library/NumberPickerView.java | java | 2016-06-28T02:38:47 | 2024-08-06T03:00:15 | NumberPickerView | Carbs0126/NumberPickerView | 1,172 | 15,036 |
```c++
// path_to_url
// v 1.89 WIP
//
//
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files(the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, pub... | /content/code_sandbox/GraphEditor.cpp | c++ | 2016-08-16T09:24:05 | 2024-08-16T19:31:15 | ImGuizmo | CedricGuillemet/ImGuizmo | 3,079 | 11,125 |
```objective-c
// path_to_url
// v 1.89 WIP
//
//
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files(the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, me... | /content/code_sandbox/ImCurveEdit.h | objective-c | 2016-08-16T09:24:05 | 2024-08-16T19:31:15 | ImGuizmo | CedricGuillemet/ImGuizmo | 3,079 | 638 |
```objective-c
// path_to_url
// v 1.89 WIP
//
//
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files(the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, me... | /content/code_sandbox/ImZoomSlider.h | objective-c | 2016-08-16T09:24:05 | 2024-08-16T19:31:15 | ImGuizmo | CedricGuillemet/ImGuizmo | 3,079 | 2,522 |
```objective-c
// path_to_url
// v 1.89 WIP
//
//
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files(the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, me... | /content/code_sandbox/ImSequencer.h | objective-c | 2016-08-16T09:24:05 | 2024-08-16T19:31:15 | ImGuizmo | CedricGuillemet/ImGuizmo | 3,079 | 747 |
```c++
// path_to_url
// v 1.89 WIP
//
//
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files(the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, pub... | /content/code_sandbox/ImGradient.cpp | c++ | 2016-08-16T09:24:05 | 2024-08-16T19:31:15 | ImGuizmo | CedricGuillemet/ImGuizmo | 3,079 | 1,158 |
```objective-c
// path_to_url
// v 1.89 WIP
//
//
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files(the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, me... | /content/code_sandbox/GraphEditor.h | objective-c | 2016-08-16T09:24:05 | 2024-08-16T19:31:15 | ImGuizmo | CedricGuillemet/ImGuizmo | 3,079 | 1,557 |
```objective-c
// path_to_url
// v 1.89 WIP
//
//
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files(the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, me... | /content/code_sandbox/ImGradient.h | objective-c | 2016-08-16T09:24:05 | 2024-08-16T19:31:15 | ImGuizmo | CedricGuillemet/ImGuizmo | 3,079 | 362 |
```c++
// path_to_url
// v 1.89 WIP
//
//
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files(the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, pub... | /content/code_sandbox/ImCurveEdit.cpp | c++ | 2016-08-16T09:24:05 | 2024-08-16T19:31:15 | ImGuizmo | CedricGuillemet/ImGuizmo | 3,079 | 4,018 |
```objective-c
// path_to_url
// v 1.89 WIP
//
//
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files(the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, me... | /content/code_sandbox/ImGuizmo.h | objective-c | 2016-08-16T09:24:05 | 2024-08-16T19:31:15 | ImGuizmo | CedricGuillemet/ImGuizmo | 3,079 | 2,935 |
```c++
// path_to_url
// v 1.89 WIP
//
//
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files(the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, pub... | /content/code_sandbox/ImGuizmo.cpp | c++ | 2016-08-16T09:24:05 | 2024-08-16T19:31:15 | ImGuizmo | CedricGuillemet/ImGuizmo | 3,079 | 32,913 |
```c++
// path_to_url
// v 1.89 WIP
//
//
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files(the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, pub... | /content/code_sandbox/ImSequencer.cpp | c++ | 2016-08-16T09:24:05 | 2024-08-16T19:31:15 | ImGuizmo | CedricGuillemet/ImGuizmo | 3,079 | 7,386 |
```c++
// path_to_url
// v 1.89 WIP
//
//
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files(the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, pub... | /content/code_sandbox/example/main.cpp | c++ | 2016-08-16T09:24:05 | 2024-08-16T19:31:15 | ImGuizmo | CedricGuillemet/ImGuizmo | 3,079 | 8,821 |
```objective-c
//your_sha256_hash-------------
// COMPILE-TIME OPTIONS FOR DEAR IMGUI
// Runtime options (clipboard callbacks, enabling various features, etc.) can generally be set via the ImGuiIO structure.
// You can use ImGui::SetAllocatorFunctions() before calling ImGui::CreateContext() to rewire memory allocation ... | /content/code_sandbox/example/imconfig.h | objective-c | 2016-08-16T09:24:05 | 2024-08-16T19:31:15 | ImGuizmo | CedricGuillemet/ImGuizmo | 3,079 | 2,208 |
```objective-c
// [DEAR IMGUI]
// This is a slightly modified version of stb_rect_pack.h 1.01.
// Grep for [DEAR IMGUI] to find the changes.
//
// stb_rect_pack.h - v1.01 - public domain - rectangle packing
// Sean Barrett 2014
//
// Useful for e.g. packing rectangular textures into an atlas.
// Does not do rotation.
... | /content/code_sandbox/example/imstb_rectpack.h | objective-c | 2016-08-16T09:24:05 | 2024-08-16T19:31:15 | ImGuizmo | CedricGuillemet/ImGuizmo | 3,079 | 5,505 |
```c++
// dear imgui, v1.89 WIP
// (tables and columns code)
/*
Index of this file:
// [SECTION] Commentary
// [SECTION] Header mess
// [SECTION] Tables: Main code
// [SECTION] Tables: Simple accessors
// [SECTION] Tables: Row changes
// [SECTION] Tables: Columns changes
// [SECTION] Tables: Columns width management... | /content/code_sandbox/example/imgui_tables.cpp | c++ | 2016-08-16T09:24:05 | 2024-08-16T19:31:15 | ImGuizmo | CedricGuillemet/ImGuizmo | 3,079 | 52,464 |
```c++
// dear imgui, v1.89 WIP
// (drawing and font code)
/*
Index of this file:
// [SECTION] STB libraries implementation
// [SECTION] Style functions
// [SECTION] ImDrawList
// [SECTION] ImDrawListSplitter
// [SECTION] ImDrawData
// [SECTION] Helpers ShadeVertsXXX functions
// [SECTION] ImFontConfig
// [SECTION] ... | /content/code_sandbox/example/imgui_draw.cpp | c++ | 2016-08-16T09:24:05 | 2024-08-16T19:31:15 | ImGuizmo | CedricGuillemet/ImGuizmo | 3,079 | 75,816 |
```objective-c
// [DEAR IMGUI]
// This is a slightly modified version of stb_truetype.h 1.26.
// Mostly fixing for compiler and static analyzer warnings.
// Grep for [DEAR IMGUI] to find the changes.
// stb_truetype.h - v1.26 - public domain
// authored from 2009-2021 by Sean Barrett / RAD Game Tools
//
// ===========... | /content/code_sandbox/example/imstb_truetype.h | objective-c | 2016-08-16T09:24:05 | 2024-08-16T19:31:15 | ImGuizmo | CedricGuillemet/ImGuizmo | 3,079 | 59,827 |
```objective-c
// dear imgui, v1.89 WIP
// (internal structures/api)
// You may use this file to debug, understand or extend ImGui features but we don't provide any guarantee of forward compatibility!
// Set:
// #define IMGUI_DEFINE_MATH_OPERATORS
// To implement maths operators for ImVec2 (disabled by default to no... | /content/code_sandbox/example/imgui_internal.h | objective-c | 2016-08-16T09:24:05 | 2024-08-16T19:31:15 | ImGuizmo | CedricGuillemet/ImGuizmo | 3,079 | 50,078 |
```c++
// dear imgui, v1.89 WIP
// (main code and documentation)
// Help:
// - Read FAQ at path_to_url
// - Newcomers, read 'Programmer guide' below for notes on how to setup Dear ImGui in your codebase.
// - Call and read ImGui::ShowDemoWindow() in imgui_demo.cpp. All applications in examples/ are doing that.
// Read... | /content/code_sandbox/example/imgui.cpp | c++ | 2016-08-16T09:24:05 | 2024-08-16T19:31:15 | ImGuizmo | CedricGuillemet/ImGuizmo | 3,079 | 174,984 |
```objective-c
// dear imgui, v1.89 WIP
// (headers)
// Help:
// - Read FAQ at path_to_url
// - Newcomers, read 'Programmer guide' in imgui.cpp for notes on how to setup Dear ImGui in your codebase.
// - Call and read ImGui::ShowDemoWindow() in imgui_demo.cpp. All applications in examples/ are doing that.
// Read imgu... | /content/code_sandbox/example/imgui.h | objective-c | 2016-08-16T09:24:05 | 2024-08-16T19:31:15 | ImGuizmo | CedricGuillemet/ImGuizmo | 3,079 | 70,737 |
```objective-c
/* stb_image - v2.16 - public domain image loader - path_to_url
no warranty implied; use at your own risk
Do this:
#define STB_IMAGE_IMPLEMENTATION
before you include this file in *one* C or C++ file to create the implementation.
// i.e. it should loo... | /content/code_sandbox/example/stb_image.h | objective-c | 2016-08-16T09:24:05 | 2024-08-16T19:31:15 | ImGuizmo | CedricGuillemet/ImGuizmo | 3,079 | 81,937 |
```objective-c
// [DEAR IMGUI]
// This is a slightly modified version of stb_textedit.h 1.14.
// Those changes would need to be pushed into nothings/stb:
// - Fix in stb_textedit_discard_redo (see path_to_url
// Grep for [DEAR IMGUI] to find the changes.
// stb_textedit.h - v1.14 - public domain - Sean Barrett
// Dev... | /content/code_sandbox/example/imstb_textedit.h | objective-c | 2016-08-16T09:24:05 | 2024-08-16T19:31:15 | ImGuizmo | CedricGuillemet/ImGuizmo | 3,079 | 13,976 |
```c++
// dear imgui, v1.89 WIP
// (widgets code)
/*
Index of this file:
// [SECTION] Forward Declarations
// [SECTION] Widgets: Text, etc.
// [SECTION] Widgets: Main (Button, Image, Checkbox, RadioButton, ProgressBar, Bullet, etc.)
// [SECTION] Widgets: Low-level Layout helpers (Spacing, Dummy, NewLine, Separator, ... | /content/code_sandbox/example/imgui_widgets.cpp | c++ | 2016-08-16T09:24:05 | 2024-08-16T19:31:15 | ImGuizmo | CedricGuillemet/ImGuizmo | 3,079 | 107,510 |
```objective-c
// path_to_url
// v 1.89 WIP
//
//
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files(the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, me... | /content/code_sandbox/example/ImApp.h | objective-c | 2016-08-16T09:24:05 | 2024-08-16T19:31:15 | ImGuizmo | CedricGuillemet/ImGuizmo | 3,079 | 39,958 |
```c++
#define IMGUI_DEFINE_MATH_OPERATORS
#include "imgui.h"
#include "imgui_internal.h"
#define IMAPP_IMPL
#include "ImApp.h"
#include "ImGuizmo.h"
#include "ImSequencer.h"
#include "ImZoomSlider.h"
#include "ImCurveEdit.h"
#include "GraphEditor.h"
#include <math.h>
#include <vector>
#include <algorithm>
bool useW... | /content/code_sandbox/vcpkg-example/main.cpp | c++ | 2016-08-16T09:24:05 | 2024-08-16T19:31:15 | ImGuizmo | CedricGuillemet/ImGuizmo | 3,079 | 8,531 |
```c++
// dear imgui, v1.89 WIP
// (demo code)
// Help:
// - Read FAQ at path_to_url
// - Newcomers, read 'Programmer guide' in imgui.cpp for notes on how to setup Dear ImGui in your codebase.
// - Call and read ImGui::ShowDemoWindow() in imgui_demo.cpp. All applications in examples/ are doing that.
// Read imgui.cpp ... | /content/code_sandbox/example/imgui_demo.cpp | c++ | 2016-08-16T09:24:05 | 2024-08-16T19:31:15 | ImGuizmo | CedricGuillemet/ImGuizmo | 3,079 | 98,654 |
```objective-c
#pragma once
#include <stdint.h> // intptr_t
#if defined(_WIN32)
// dont bother adding library
#pragma comment(lib,"opengl32.lib")
#define WINDOWS_LEAN_AND_MEAN
#include <Windows.h>
#include <GL/GL.h>
# define glGetProcAddress(name) (void *)wglGetProcAddress((LPCSTR)name)
#elif defined(__APPLE__) ... | /content/code_sandbox/vcpkg-example/ImApp.h | objective-c | 2016-08-16T09:24:05 | 2024-08-16T19:31:15 | ImGuizmo | CedricGuillemet/ImGuizmo | 3,079 | 39,726 |
```shell
isbeta=$(git describe --abbrev=0 --tags | grep beta)
if [[ "$isbeta" != "" ]]
then
xcodebuild -project V2RayX.xcodeproj -target V2RayX -configuration Debug -s
cd build/Debug/
else
cd build/Release/
fi
zip -r V2RayX.app.zip V2RayX.app
cd ../..
``` | /content/code_sandbox/prepare_zip.sh | shell | 2016-02-10T08:56:28 | 2024-08-15T14:11:50 | V2RayX | Cenmrev/V2RayX | 7,623 | 87 |
```shell
#!/bin/sh
# compilefromsource.sh
# V2RayX
#
# Created by Cenmrev on 10/15/16.
# path_to_url
function moveToTrash () {
local path
for path in "$@"; do
# ignore any arguments
if [[ "$path" = -* ]]; then :
else
# remove trailing slash
local mindtrailingslash=${path%/}
# remo... | /content/code_sandbox/compilefromsource.sh | shell | 2016-02-10T08:56:28 | 2024-08-15T14:11:50 | V2RayX | Cenmrev/V2RayX | 7,623 | 516 |
```objective-c
//
// utilities.h
// V2RayX
//
//
#ifndef utilities_h
#define utilities_h
#import <Cocoa/Cocoa.h>
#import "MutableDeepCopying.h"
#define DOMAIN_STRATEGY_LIST (@[@"AsIs", @"IPIfNonMatch", @"IPOnDemand"])
#define ROUTING_NETWORK_LIST (@[@"tcp", @"udp", @"tcp,udp"])
#define OBFU_LIST (@[@"none", @"srt... | /content/code_sandbox/V2RayX/utilities.h | objective-c | 2016-02-10T08:56:28 | 2024-08-15T14:11:50 | V2RayX | Cenmrev/V2RayX | 7,623 | 726 |
```objective-c
//
// ServerProfile.h
// V2RayX
//
//
#import <Foundation/Foundation.h>
#import "AppDelegate.h"
#import "utilities.h"
typedef enum SecurityType : NSUInteger {
auto_,
aes_128_gcm,
chacha20_poly130,
none
} SecurityType;
typedef enum NetWorkType : NSUInteger {
tcp,
kcp,
ws,
... | /content/code_sandbox/V2RayX/ServerProfile.h | objective-c | 2016-02-10T08:56:28 | 2024-08-15T14:11:50 | V2RayX | Cenmrev/V2RayX | 7,623 | 247 |
```javascript
var V2Ray = "SOCKS5 127.0.0.1:1081; SOCKS 127.0.0.1:1081; DIRECT;";
var domains = [
"vpngate.net",
"greatfire.org",
"tox.im",
"proxifier.com",
"dnscrypt.org",
"atgfw.org",
"chinagfw.org",
"whatismyip.com",
"goagentplus.com",
"shadowsocks.org",
"falcop.com",
"getlantern.org",
"furbo.org",
"g... | /content/code_sandbox/V2RayX/simple.pac | javascript | 2016-02-10T08:56:28 | 2024-08-15T14:11:50 | V2RayX | Cenmrev/V2RayX | 7,623 | 1,137 |
```objective-c
//
// utilities.m
// V2RayX
//
//
#import "utilities.h"
NSUInteger searchInArray(NSString* str, NSArray* array) {
if ([str isKindOfClass:[NSString class]]) {
NSUInteger index = 0;
for (NSString* s in array) {
if ([s isKindOfClass:[NSString class]] && [s isEqualToString... | /content/code_sandbox/V2RayX/utilities.m | objective-c | 2016-02-10T08:56:28 | 2024-08-15T14:11:50 | V2RayX | Cenmrev/V2RayX | 7,623 | 100 |
```objective-c
//
// AdvancedWindowController.m
// V2RayX
//
//
#import "AdvancedWindowController.h"
#import "MutableDeepCopying.h"
#include <stdio.h>
@interface AdvancedWindowController () {
ConfigWindowController* configWindowController;
//outbound
}
@property (strong) NSPopover* popover;
@property N... | /content/code_sandbox/V2RayX/AdvancedWindowController.m | objective-c | 2016-02-10T08:56:28 | 2024-08-15T14:11:50 | V2RayX | Cenmrev/V2RayX | 7,623 | 5,776 |
```objective-c
//
// NSData+AES256Encryption.m
// V2RayX
//
//
#import "NSData+AES256Encryption.h"
#import <CommonCrypto/CommonDigest.h>
#import <CommonCrypto/CommonCryptor.h>
@implementation NSData (AES256Encryption)
- (NSData *)encryptedDataWithKey:(NSString*)key {
NSUInteger dataLength = [self length];
... | /content/code_sandbox/V2RayX/NSData+AES256Encryption.m | objective-c | 2016-02-10T08:56:28 | 2024-08-15T14:11:50 | V2RayX | Cenmrev/V2RayX | 7,623 | 420 |
```objective-c
//
// AppDelegate.m
// V2RayX
//
//
#import "AppDelegate.h"
#import "GCDWebServer.h"
#import "GCDWebServerDataResponse.h"
#import "ConfigWindowController.h"
#import <SystemConfiguration/SystemConfiguration.h>
#import "ServerProfile.h"
#import "MutableDeepCopying.h"
#import "ConfigImporter.h"
#import "... | /content/code_sandbox/V2RayX/AppDelegate.m | objective-c | 2016-02-10T08:56:28 | 2024-08-15T14:11:50 | V2RayX | Cenmrev/V2RayX | 7,623 | 11,056 |
```objective-c
//
// ConfigImporter.m
// V2RayX
//
//
#import "ConfigImporter.h"
#import "utilities.h"
@implementation ConfigImporter
+ (NSString* _Nonnull)decodeBase64String:(NSString*)encoded {
if (!encoded || ![encoded isKindOfClass:[NSString class]] || encoded.length == 0) {
return @"";
}
N... | /content/code_sandbox/V2RayX/ConfigImporter.m | objective-c | 2016-02-10T08:56:28 | 2024-08-15T14:11:50 | V2RayX | Cenmrev/V2RayX | 7,623 | 4,269 |
```objective-c
//
// ServerProfile.m
// V2RayX
//
//
#import "ServerProfile.h"
@implementation ServerProfile
- (ServerProfile*)init {
self = [super init];
if (self) {
[self setAddress:@"server.cc"];
[self setPort:10086];
[self setUserId:@"00000000-0000-0000-0000-000000000000"];
... | /content/code_sandbox/V2RayX/ServerProfile.m | objective-c | 2016-02-10T08:56:28 | 2024-08-15T14:11:50 | V2RayX | Cenmrev/V2RayX | 7,623 | 1,454 |
```objective-c
//
// AppDelegate.h
// V2RayX
//
//
#import <Cocoa/Cocoa.h>
#import "sysconf_version.h"
#import "utilities.h"
#define kV2RayXHelper @"/Library/Application Support/V2RayX/v2rayx_sysconf"
#define kV2RayXSettingVersion 4
#define webServerPort 8070
typedef enum ProxyMode : NSInteger{
pacMode,
g... | /content/code_sandbox/V2RayX/AppDelegate.h | objective-c | 2016-02-10T08:56:28 | 2024-08-15T14:11:50 | V2RayX | Cenmrev/V2RayX | 7,623 | 688 |
```objective-c
// path_to_url
#import <Foundation/Foundation.h>
@protocol MutableDeepCopying <NSObject>
-(id) mutableDeepCopy;
@end
@interface NSDictionary (MutableDeepCopy) <MutableDeepCopying>
@end
@interface NSArray (MutableDeepCopy) <MutableDeepCopying>
@end
// Implementation
@implementation NSDictionary (Mutabl... | /content/code_sandbox/V2RayX/MutableDeepCopying.h | objective-c | 2016-02-10T08:56:28 | 2024-08-15T14:11:50 | V2RayX | Cenmrev/V2RayX | 7,623 | 389 |
```shell
VERSION="4.18.0"
RED='\033[0;31m'
GREEN='\033[0;32m'
BOLD='\033[1m'
NORMAL='\033[0m'
cd "$SRCROOT"
output="v0"
if [[ -f ./v2ray-core-bin/v2ray ]]; then
output=$(./v2ray-core-bin/v2ray --version)
fi
existingVersion=${output:6:${#VERSION}}
if [ "$VERSION" != "$existingVersion" ]; then
getCore=0
mkdi... | /content/code_sandbox/V2RayX/dlcore.sh | shell | 2016-02-10T08:56:28 | 2024-08-15T14:11:50 | V2RayX | Cenmrev/V2RayX | 7,623 | 467 |
```objective-c
//
// main.m
// V2RayX
//
//
#import <Cocoa/Cocoa.h>
int main(int argc, const char * argv[]) {
return NSApplicationMain(argc, argv);
}
``` | /content/code_sandbox/V2RayX/main.m | objective-c | 2016-02-10T08:56:28 | 2024-08-15T14:11:50 | V2RayX | Cenmrev/V2RayX | 7,623 | 45 |
```objective-c
//
// ConfigWindowController.h
// V2RayX
//
//
#import <Cocoa/Cocoa.h>
#import "ServerProfile.h"
@interface ConfigWindowController : NSWindowController <NSTableViewDataSource, NSTableViewDelegate>
- (IBAction)chooseNetwork:(NSPopUpButton *)sender;
@property (weak) IBOutlet NSPopUpButton *networkButto... | /content/code_sandbox/V2RayX/ConfigWindowController.h | objective-c | 2016-02-10T08:56:28 | 2024-08-15T14:11:50 | V2RayX | Cenmrev/V2RayX | 7,623 | 455 |
```objective-c
//
// TransportWindowController.h
// V2RayX
//
//
#import <Cocoa/Cocoa.h>
#import "ConfigWindowController.h"
#import "utilities.h"
NS_ASSUME_NONNULL_BEGIN
@interface TransportWindowController : NSWindowController
- (instancetype)initWithWindowNibName:(NSNibName)windowNibName parentController:(Confi... | /content/code_sandbox/V2RayX/TransportWindowController.h | objective-c | 2016-02-10T08:56:28 | 2024-08-15T14:11:50 | V2RayX | Cenmrev/V2RayX | 7,623 | 472 |
```shell
#!/bin/sh
# install_helper.sh
# V2RayX
#
cd `dirname "${BASH_SOURCE[0]}"`
sudo mkdir -p "/Library/Application Support/V2RayX/"
sudo cp v2rayx_sysconf "/Library/Application Support/V2RayX/"
sudo chown root:admin "/Library/Application Support/V2RayX/v2rayx_sysconf"
sudo chmod +s "/Library/Application Support... | /content/code_sandbox/V2RayX/install_helper.sh | shell | 2016-02-10T08:56:28 | 2024-08-15T14:11:50 | V2RayX | Cenmrev/V2RayX | 7,623 | 102 |
```objective-c
//
// ConfigImporter.h
// V2RayX
//
//
#import <Foundation/Foundation.h>
#import "ServerProfile.h"
NS_ASSUME_NONNULL_BEGIN
@interface ConfigImporter : NSObject
+ (NSDictionary*)parseStandardSSLink:(NSString*)link;
+ (NSMutableDictionary*)ssOutboundFromSSLink:(NSString*)link;
+ (NSMutableDictionary*)... | /content/code_sandbox/V2RayX/ConfigImporter.h | objective-c | 2016-02-10T08:56:28 | 2024-08-15T14:11:50 | V2RayX | Cenmrev/V2RayX | 7,623 | 176 |
```objective-c
//
// NSData+AES256Encryption.h
// V2RayX
//
//
#import <Cocoa/Cocoa.h>
@interface NSData (AES256Encryption)
- (NSData *)encryptedDataWithKey:(NSString*)key;
- (NSData* )decryptedDataWithKey:(NSString*)key;
@end
``` | /content/code_sandbox/V2RayX/NSData+AES256Encryption.h | objective-c | 2016-02-10T08:56:28 | 2024-08-15T14:11:50 | V2RayX | Cenmrev/V2RayX | 7,623 | 65 |
```objective-c
//
// TransportWindowController.m
// V2RayX
//
//
#import "TransportWindowController.h"
@interface TransportWindowController () {
ConfigWindowController* configWindowController;
}
@end
@implementation TransportWindowController
- (instancetype)initWithWindowNibName:(NSNibName)windowNibName pare... | /content/code_sandbox/V2RayX/TransportWindowController.m | objective-c | 2016-02-10T08:56:28 | 2024-08-15T14:11:50 | V2RayX | Cenmrev/V2RayX | 7,623 | 2,618 |
```objective-c
//
// ConfigWindowController.m
// V2RayX
//
//
#import "ConfigWindowController.h"
#import "AppDelegate.h"
#import "MutableDeepCopying.h"
#import "TransportWindowController.h"
#import "AdvancedWindowController.h"
#import "ConfigImporter.h"
@interface ConfigWindowController ()
@property (strong) Trans... | /content/code_sandbox/V2RayX/ConfigWindowController.m | objective-c | 2016-02-10T08:56:28 | 2024-08-15T14:11:50 | V2RayX | Cenmrev/V2RayX | 7,623 | 4,034 |
```objective-c
//
// AdvancedWindowController.h
// V2RayX
//
//
#import <Cocoa/Cocoa.h>
#import "ConfigWindowController.h"
NS_ASSUME_NONNULL_BEGIN
@interface AdvancedWindowController : NSWindowController<NSTableViewDelegate, NSTableViewDataSource, NSTextViewDelegate>
- (instancetype)initWithWindowNibName:(NSNibNa... | /content/code_sandbox/V2RayX/AdvancedWindowController.h | objective-c | 2016-02-10T08:56:28 | 2024-08-15T14:11:50 | V2RayX | Cenmrev/V2RayX | 7,623 | 734 |
```objective-c
//
// sysconf_version.h
// V2RayX
//
//
#ifndef sysconf_version_h
#define sysconf_version_h
#define VERSION @"v2rayx_sysconf 1.4.0"
#endif /* sysconf_version_h */
``` | /content/code_sandbox/v2rayx_sysconf/sysconf_version.h | objective-c | 2016-02-10T08:56:28 | 2024-08-15T14:11:50 | V2RayX | Cenmrev/V2RayX | 7,623 | 53 |
```objective-c
//
// main.m
// v2rayx_sysconf
//
//
#import <Foundation/Foundation.h>
#import <SystemConfiguration/SystemConfiguration.h>
#import "sysconf_version.h"
#define INFO "v2rayx_sysconf\n the helper tool for V2RayX, modified from clowwindy's shadowsocks_sysconf.\nusage: v2rayx_sysconf [options]\noff\t turn... | /content/code_sandbox/v2rayx_sysconf/main.m | objective-c | 2016-02-10T08:56:28 | 2024-08-15T14:11:50 | V2RayX | Cenmrev/V2RayX | 7,623 | 1,325 |
```objective-c
//
// main.m
// jsonplist
//
//
#import <Foundation/Foundation.h>
int main(int argc, const char * argv[]) {
@autoreleasepool {
if (argc < 2) {
printf("Please provide at least one input file!\n");
return 1;
}
NSString* imputFile = [NSString stringWit... | /content/code_sandbox/jsonplist/main.m | objective-c | 2016-02-10T08:56:28 | 2024-08-15T14:11:50 | V2RayX | Cenmrev/V2RayX | 7,623 | 358 |
```qmake
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in /Users/ChadSong/Android/sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For more details, see
# ... | /content/code_sandbox/shinebuttonlib/proguard-rules.pro | qmake | 2016-07-05T06:32:26 | 2024-08-15T07:21:08 | ShineButton | ChadCSong/ShineButton | 4,219 | 141 |
```java
package com.sackcentury.shinebuttonlib;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Matrix;
import android.graphics.Paint;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import androi... | /content/code_sandbox/shinebuttonlib/src/main/java/com/sackcentury/shinebuttonlib/PorterShapeImageView.java | java | 2016-07-05T06:32:26 | 2024-08-15T07:21:08 | ShineButton | ChadCSong/ShineButton | 4,219 | 604 |
```java
package com.sackcentury.shinebuttonlib;
import android.animation.ValueAnimator;
import android.graphics.Canvas;
import com.daasuu.ei.Ease;
import com.daasuu.ei.EasingInterpolator;
/**
* @author Chad
* @title com.sackcentury.shinebuttonlib
* @description
* @modifier
* @date
* @since 16/7/5 5:09
**/
pub... | /content/code_sandbox/shinebuttonlib/src/main/java/com/sackcentury/shinebuttonlib/ShineAnimator.java | java | 2016-07-05T06:32:26 | 2024-08-15T07:21:08 | ShineButton | ChadCSong/ShineButton | 4,219 | 249 |
```java
package com.sackcentury.shinebuttonlib;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Matrix;
import android.graphics.Paint;
import android.graphics.PorterDuff;
import android.graphics.PorterDuffXfermode;
i... | /content/code_sandbox/shinebuttonlib/src/main/java/com/sackcentury/shinebuttonlib/PorterImageView.java | java | 2016-07-05T06:32:26 | 2024-08-15T07:21:08 | ShineButton | ChadCSong/ShineButton | 4,219 | 1,058 |
```java
package com.sackcentury.shinebuttonlib;
import android.animation.Animator;
import android.animation.ValueAnimator;
import android.app.Activity;
import android.app.Dialog;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Color;
import... | /content/code_sandbox/shinebuttonlib/src/main/java/com/sackcentury/shinebuttonlib/ShineButton.java | java | 2016-07-05T06:32:26 | 2024-08-15T07:21:08 | ShineButton | ChadCSong/ShineButton | 4,219 | 2,266 |
```java
package com.sackcentury.shinebuttonlib;
import android.animation.Animator;
import android.animation.ValueAnimator;
import android.app.Activity;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Rect;
import andr... | /content/code_sandbox/shinebuttonlib/src/main/java/com/sackcentury/shinebuttonlib/ShineView.java | java | 2016-07-05T06:32:26 | 2024-08-15T07:21:08 | ShineButton | ChadCSong/ShineButton | 4,219 | 2,265 |
```java
package com.sackcentury.shinebuttonlib.listener;
import android.animation.Animator;
/**
* Create by SongChao on 2019-06-14
*/
public class SimpleAnimatorListener implements Animator.AnimatorListener {
@Override
public void onAnimationStart(Animator animator) {
}
@Override
public void o... | /content/code_sandbox/shinebuttonlib/src/main/java/com/sackcentury/shinebuttonlib/listener/SimpleAnimatorListener.java | java | 2016-07-05T06:32:26 | 2024-08-15T07:21:08 | ShineButton | ChadCSong/ShineButton | 4,219 | 112 |
```java
package com.sackcentury.shinebuttonlib;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* To work on unit tests, switch the Test Artifact in the Build Variants view.
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() throws Exception {
assertEquals(4, 2 + ... | /content/code_sandbox/shinebuttonlib/src/test/java/com/sackcentury/shinebuttonlib/ExampleUnitTest.java | java | 2016-07-05T06:32:26 | 2024-08-15T07:21:08 | ShineButton | ChadCSong/ShineButton | 4,219 | 76 |
```java
package com.sackcentury.shinebuttonlib;
import android.app.Application;
import android.test.ApplicationTestCase;
/**
* <a href="path_to_url">Testing Fundamentals</a>
*/
public class ApplicationTest extends ApplicationTestCase<Application> {
public ApplicationTest() {
super(Application.class);
... | /content/code_sandbox/shinebuttonlib/src/androidTest/java/com/sackcentury/shinebuttonlib/ApplicationTest.java | java | 2016-07-05T06:32:26 | 2024-08-15T07:21:08 | ShineButton | ChadCSong/ShineButton | 4,219 | 64 |
```java
package com.sackcentury.shinebutton;
import android.os.Bundle;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentTransaction;
import android.view.LayoutInflater;
import android.view.View;
import android... | /content/code_sandbox/app/src/main/java/com/sackcentury/shinebutton/FragmentDemo.java | java | 2016-07-05T06:32:26 | 2024-08-15T07:21:08 | ShineButton | ChadCSong/ShineButton | 4,219 | 398 |
```java
package com.sackcentury.shinebutton;
import android.app.Activity;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.WindowManager;
import android.widget.BaseAdapter;
import android.widget.ListView;
import android.widget.Te... | /content/code_sandbox/app/src/main/java/com/sackcentury/shinebutton/ListDemoActivity.java | java | 2016-07-05T06:32:26 | 2024-08-15T07:21:08 | ShineButton | ChadCSong/ShineButton | 4,219 | 405 |
```java
package com.sackcentury.shinebutton;
import android.app.Dialog;
import android.content.Intent;
import android.graphics.Color;
import android.os.Build;
import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.Menu... | /content/code_sandbox/app/src/main/java/com/sackcentury/shinebutton/MainActivity.java | java | 2016-07-05T06:32:26 | 2024-08-15T07:21:08 | ShineButton | ChadCSong/ShineButton | 4,219 | 911 |
```java
package com.sackcentury.shinebutton;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* To work on unit tests, switch the Test Artifact in the Build Variants view.
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() throws Exception {
assertEquals(4, 2 + 2);... | /content/code_sandbox/app/src/test/java/com/sackcentury/shinebutton/ExampleUnitTest.java | java | 2016-07-05T06:32:26 | 2024-08-15T07:21:08 | ShineButton | ChadCSong/ShineButton | 4,219 | 75 |
```java
package com.sackcentury.shinebutton;
import android.app.Application;
import android.test.ApplicationTestCase;
/**
* <a href="path_to_url">Testing Fundamentals</a>
*/
public class ApplicationTest extends ApplicationTestCase<Application> {
public ApplicationTest() {
super(Application.class);
}... | /content/code_sandbox/app/src/androidTest/java/com/sackcentury/shinebutton/ApplicationTest.java | java | 2016-07-05T06:32:26 | 2024-08-15T07:21:08 | ShineButton | ChadCSong/ShineButton | 4,219 | 63 |
```css
:root{--fore-color:#111;--secondary-fore-color:#444;--back-color:#f8f8f8;--secondary-back-color:#f0f0f0;--blockquote-color:#f57c00;--pre-color:#1565c0;--border-color:#aaa;--secondary-border-color:#ddd;--heading-ratio:1.19;--universal-margin:.5rem;--universal-padding:.5rem;--universal-border-radius:.125rem;--a-li... | /content/code_sandbox/docs/style.min.css | css | 2016-08-22T06:31:31 | 2024-07-22T10:26:17 | mini.css | Chalarangelo/mini.css | 2,960 | 17,755 |
```javascript
/*!
JSZip v3.1.5 - A JavaScript class for generating and reading zip files
<path_to_url
(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
Dual licenced under the MIT license or GPLv3. See path_to_url
JSZip uses the library pako released under the MIT license :
path_to_url
*/
!function(a){if("obj... | /content/code_sandbox/docs/jszip.min.js | javascript | 2016-08-22T06:31:31 | 2024-07-22T10:26:17 | mini.css | Chalarangelo/mini.css | 2,960 | 35,795 |
```html
<!DOCTYPE html><html lang="en"><head>
<link href="path_to_url|Poppins:400,400i,500,700,700i&subset=latin-ext" rel="stylesheet">
<link rel="stylesheet" href="./style.min.css">
<script src="path_to_url"></script>
<title>mini.css - Docs</title>
<meta charset="utf-8"><meta name="viewport" content="width=device-... | /content/code_sandbox/docs/docs.html | html | 2016-08-22T06:31:31 | 2024-07-22T10:26:17 | mini.css | Chalarangelo/mini.css | 2,960 | 61,148 |
```javascript
/*! sass.js - v0.10.10 (4ca6ca1) - built 2018-07-07
providing libsass 3.5.4 (1e52b743)
via emscripten 1.37.35 ()
*/
(function (root, factory) {
'use strict';
if (typeof define === 'function' && define.amd) {
define([], factory);
} else if (typeof exports === 'object') {
module.exports ... | /content/code_sandbox/docs/sass.js | javascript | 2016-08-22T06:31:31 | 2024-07-22T10:26:17 | mini.css | Chalarangelo/mini.css | 2,960 | 1,383 |
```javascript
// Get the current version of the Gluon branch.
module.exports = {
version: 'v3.0.1'
}
``` | /content/code_sandbox/docs/vinf.js | javascript | 2016-08-22T06:31:31 | 2024-07-22T10:26:17 | mini.css | Chalarangelo/mini.css | 2,960 | 29 |
```javascript
var fs = require('fs');
var version = require('./vinf'); // Gets version info.
var frameworkUrl = `"path_to_url{version.version.slice(1)}/mini-default.css"`;
// INDEX
var indexHtml = `<!DOCTYPE html>
<html lang="en">
<head>
<link href="path_to_url|Poppins:400,400i,500,700,7... | /content/code_sandbox/docs/build-docs.js | javascript | 2016-08-22T06:31:31 | 2024-07-22T10:26:17 | mini.css | Chalarangelo/mini.css | 2,960 | 6,417 |
```javascript
/*! @source path_to_url */
var saveAs=saveAs||function(e){"use strict";if(typeof e==="undefined"||typeof navigator!=="undefined"&&/MSIE [1-9]\./.test(navigator.userAgent)){return}var t=e.document,n=function(){return e.URL||e.webkitURL||e},r=t.createElementNS("path_to_url","a"),o="download"in r,a=function(... | /content/code_sandbox/docs/FileSaver.min.js | javascript | 2016-08-22T06:31:31 | 2024-07-22T10:26:17 | mini.css | Chalarangelo/mini.css | 2,960 | 735 |
```html
<!DOCTYPE html>
<html lang="en">
<head>
<link href="path_to_url|Poppins:400,400i,500,700,700i&subset=latin-ext" rel="stylesheet">
<link rel="stylesheet" href="./style.min.css">
<title>mini.css - Minimal, responsive, style-agnostic CSS framework</title>
<meta charset="utf-8"><meta name="viewport" c... | /content/code_sandbox/docs/index.html | html | 2016-08-22T06:31:31 | 2024-07-22T10:26:17 | mini.css | Chalarangelo/mini.css | 2,960 | 1,912 |
```html
<!DOCTYPE html><html lang="en"><head>
<link href="path_to_url|Poppins:400,400i,500,700,700i&subset=latin-ext" rel="stylesheet">
<link rel="stylesheet" href="./style.min.css">
<title>mini.css - Flavors</title>
<meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">
<meta na... | /content/code_sandbox/docs/flavors.html | html | 2016-08-22T06:31:31 | 2024-07-22T10:26:17 | mini.css | Chalarangelo/mini.css | 2,960 | 36,390 |
```javascript
/*! sass.js - v0.10.10 (4ca6ca1) - built 2018-07-07
providing libsass 3.5.4 (1e52b743)
via emscripten 1.37.35 ()
*/
var Sass = require('./sass.sync.js');
var fs = require('fs');
var path = require('path');
function fileExists(path) {
var stat = fs.statSync(path);
return stat && stat.isFile();
}
... | /content/code_sandbox/docs/sass.node.js | javascript | 2016-08-22T06:31:31 | 2024-07-22T10:26:17 | mini.css | Chalarangelo/mini.css | 2,960 | 590 |
```javascript
/*! sass.js - v0.10.10 (4ca6ca1) - built 2018-07-07
providing libsass 3.5.4 (1e52b743)
via emscripten 1.37.35 ()
*/
var Module=typeof Module!=="undefined"?Module:{};var moduleOverrides={};var key;for(key in Module){if(Module.hasOwnProperty(key)){moduleOverrides[key]=Module[key]}}Module["arguments"]=[... | /content/code_sandbox/docs/sass.worker.js | javascript | 2016-08-22T06:31:31 | 2024-07-22T10:26:17 | mini.css | Chalarangelo/mini.css | 2,960 | 2,282,040 |
```javascript
module.exports = {
id: 'heading',
title: 'Headings',
keywords: [`heading`, `h1`, `h2`, `h3`, `h4`, `h5`, `h6`, `small`, `title`, `subtitle`, `subheading`],
description: `<p>All of the HTML5 heading elements are styled, using a customizable ratio and simple rules, providing a clean base for your we... | /content/code_sandbox/docs/doc-fragments/headings.js | javascript | 2016-08-22T06:31:31 | 2024-07-22T10:26:17 | mini.css | Chalarangelo/mini.css | 2,960 | 944 |
```javascript
var version = require('../vinf').version;
module.exports = {
id: 'getting-started',
title: 'Getting started',
keywords: ['html', 'viewport', 'head', 'meta', 'getting started', 'introduction', 'browser support', 'installation', 'usage', 'setup', 'cdn', 'npm', 'yarn'],
description: `<p>You can get s... | /content/code_sandbox/docs/doc-fragments/gettingStarted.js | javascript | 2016-08-22T06:31:31 | 2024-07-22T10:26:17 | mini.css | Chalarangelo/mini.css | 2,960 | 979 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.