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
// some-component.js | |
// see https://www.youtube.com/watch?v=pOfwp6VlnlM. | |
/** | |
* @file Do something | |
* @author [email protected] | |
* @requires jquery.js | |
*/ | |
/** |
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
#!/bin/bash | |
files=$(git diff --cached --name-only | grep '\.jsx\?$') | |
# Prevent ESLint help message if no files matched | |
if [[ $files = "" ]] ; then | |
exit 0 | |
fi | |
failed=0 | |
for file in ${files}; do |
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
// Gulp module imports | |
import {src, dest, watch, parallel, series} from 'gulp'; | |
import del from 'del'; | |
import livereload from 'gulp-livereload'; | |
import sass from 'gulp-sass'; | |
import minifycss from 'gulp-minify-css'; | |
import jade from 'gulp-jade'; | |
import gulpif from 'gulp-if'; | |
import babel from 'gulp-babel'; | |
import yargs from 'yargs'; |
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
// ---- | |
// Sass (v3.3.0.rc.2) | |
// Compass (v1.0.0.alpha.17) | |
// ---- | |
// | |
// map-fetch($map, $keys) | |
// | |
// An easy way to fetch a deep value in a multi-level map. Works much like | |
// map-get() except that you pass multiple keys as the second parameter to |
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
/* | |
* By Shajed Evan @evanshajed | |
* Concept by: CHRIS COYIER @chriscoyier | |
// Breakpoints | |
@mixin breakpoint($point) { | |
/* Smartphones (portrait and landscape) ----------- */ | |
@if $point == sp-portrait-lanscape { | |
@media only screen and (min-device-width : 320px) and (max-device-width : 480px) { @content; } |
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
{ | |
"name" : "rarst/install-test", | |
"description" : "Test project for WordPress stack via Composer", | |
"authors" : [ | |
{ | |
"name" : "Andrey Savchenko", | |
"homepage": "http://www.Rarst.net/" | |
} | |
], | |
"type" : "project", |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<link rel="stylesheet" href="qunit/qunit.css" type="text/css" media="screen"> | |
<script type="text/javascript" src="qunit/jquery.js"></script> | |
<script type="text/javascript" src="qunit/qunit.js"></script> | |
<script type="text/javascript"> | |
// To save data in Browserscope do something like the following. | |
// The syntax is 'test_key': 'value' where test_key is some unique |
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
Show hidden characters
{ | |
/*** Globals ***/ | |
// To ignore any custom global variables, enable the `predef` option and list | |
// your variables within it. | |
"predef": [ | |
"exports", | |
"YUITest", | |
"YUI", | |
"YUI_config", | |
"YAHOO", |
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
// Create a jquery plugin that prints the given element. | |
jQuery.fn.print = function(){ | |
// NOTE: We are trimming the jQuery collection down to the | |
// first element in the collection. | |
if (this.size() > 1){ | |
this.eq( 0 ).print(); | |
return; | |
} else if (!this.size()){ | |
return; | |
} |
NewerOlder