This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+-- @microlink/[email protected] | |
| +-- [email protected] | |
| +-- [email protected] | |
| | +-- @sindresorhus/[email protected] | |
| | +-- @szmarczak/[email protected] | |
| | | `-- [email protected] | |
| | +-- @types/[email protected] | |
| | | +-- @types/[email protected] | |
| | | +-- @types/[email protected] | |
| | | | `-- @types/[email protected] deduped |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class NodeUtils { | |
static path(node) { | |
let tests = [] | |
// if the chain contains a non-(element|text) node type, we can go no further | |
for (; | |
node && (node.nodeType === Node.ELEMENT_NODE || node.nodeType === Node.TEXT_NODE); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Before copy-pasting this code inside your nuxt config file, read the instructions first. | |
* | |
* 1. Go to https://realfavicongenerator.net/ and generate a bunch of favicons. | |
* It will take only 5 minutes to generate them(assuming you have a base favicon in 512x512 size ready) | |
* When generating the favicons select the path directory as /favicons | |
* 2. Make a facebook cover image. Use something like figma or canva to create one quickly. Name the file cover.jpg | |
* 3. Inside your nuxt project create a folder called favicons and dump all the favicon files(generated from the favicon generator) | |
* as well as the facebook cover image. | |
* 4. Configure the variables below to your liking. You can also change the delimiter. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use Carbon_Fields\Container; | |
use Carbon_Fields\Field; | |
add_action( 'carbon_fields_register_fields', 'crb_attach_theme_options' ); | |
function crb_attach_theme_options() { | |
Container::make( 'theme_options', __( 'Theme Options', 'crb' ) ) | |
->add_fields( array( | |
Field::make('text', 'crb_text', 'Text Field' ), | |
Field::make('association', 'crb_association', 'Association'), | |
Field::make('checkbox', 'crb_checkbox', 'Checkbox') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* jslint undef: true */ | |
/* global window, document, $ */ | |
/* ---------------------------------------------------------------- | |
* globals.js | |
* | |
* Contains setters and getters to store and retrieve global vars | |
* ---------------------------------------------------------------- */ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* particle.js | |
* | |
* Originally taken from http://alexanderjam.es/ | |
* | |
* Menu: | |
* globals | |
* class | |
* class functions | |
* utils |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var stretch = 1; | |
function parseRGB(input) { | |
m = input.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i); | |
if( m) { | |
return [parseInt(m[1]),parseInt(m[2]),parseInt(m[3])]; | |
} else { | |
return null; | |
} | |
} | |
function normalize(num) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* jslint undef: true, vars: true */ | |
/* global window, document, $ */ | |
/* | |
* cache.js | |
* | |
* Used for caching objects in an array | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* A loop for delaying each iteration of a loop | |
* How to use? | |
* var time = new TimeLoop(ms, iterations, callback); | |
* time(); // Executes the loop | |
* | |
* Also, the first parameter of the callback function is the counter of the loop | |
*/ | |
var TimeLoop = function(ms, i, callback) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* | |
* Custom MVC library | |
* | |
* | |
* Api reference : | |
* var mvc = new Mvc // options > debug : false | |
* var page = new mvc.Component({ | |
* name : 'shash7', // some value |