Kraken
- Kraken
Scripts
- Buoy
- Astro
- Drop
- Houdini
/* The class that applies the animation. */ | |
.spinner { | |
display: inline-block; | |
@include prefixer(animation, spin 2s infinite linear, webkit moz ms o spec); | |
} | |
/* The vendor-specific and generic animation keyframes. | |
* These control the direction and nature of the animation. */ |
<?php | |
function some_name( array $options = array() ) { | |
// Set defaults for all passed options | |
$options = array_merge( array( | |
'property1' => 'default1', | |
'property2' => 'default2', | |
), $options); | |
} |
// Event selector defaults | |
var toggles; // Toggle nodes list | |
var eventListeners = []; //Listeners array | |
// Whenever a toggle is clicked, run the function | |
toggles = document.querySelectorAll('[data-collapse]'); // Get all collapse toggles | |
forEach(toggles, function (toggle, index) { | |
eventListeners[index] = exports.FUNCTION.bind( null, VARIABLES ); | |
toggle.addEventListener('click', eventListeners[index], false); | |
}); |
/** | |
* Remove whitespace from a string | |
* @private | |
* @param {String} string | |
* @returns {String} | |
*/ | |
var trim = function ( string ) { | |
return string.replace(/^\s+|\s+$/g, ''); | |
}; |
/*! loadJS: load a JS file asynchronously. [c]2014 @scottjehl, Filament Group, Inc. (Based on http://goo.gl/REQGQ by Paul Irish). Licensed MIT */ | |
function loadJS( src ){ | |
'use strict'; | |
var ref = window.document.getElementsByTagName( 'script' )[ 0 ]; | |
var script = window.document.createElement( 'script' ); | |
script.src = src; | |
ref.parentNode.insertBefore( script, ref ); | |
return script; | |
} |
Kraken
Scripts
{ | |
"color_scheme": "Packages/Monokai Extended/Monokai Extended.tmTheme", | |
"find_selected_text": true, | |
"font_face": "Menlo", | |
"font_size": 14.0, | |
"highlight_line": true, | |
"hot_exit": false, | |
"ignored_packages": | |
[ | |
"Vintage" |
Sometimes you want to have a subdirectory on the master
branch be the root directory of a repository’s gh-pages
branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master
branch alongside the rest of your code.
For the sake of this example, let’s pretend the subfolder containing your site is named dist
.
Remove the dist
directory from the project’s .gitignore
file (it’s ignored by default by Yeoman).
(function (root, factory) { | |
if ( typeof define === 'function' && define.amd ) { | |
define('myPlugin', factory(root)); | |
} else if ( typeof exports === 'object' ) { | |
module.exports = factory(root); | |
} else { | |
root.myPlugin = factory(root); | |
} | |
})(typeof global !== "undefined" ? global : this.window || this.global, function (root) { |
;(function ($, window, document, undefined) { | |
'use strict'; | |
// Code goes here... | |
})(jQuery, window, document); |