This file contains hidden or 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
| license: gpl-3.0 |
This file contains hidden or 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
| $(function(){ | |
| $('#myFormSubmit').click(function(e){ | |
| e.preventDefault(); | |
| alert($('#myField').val()); | |
| $('#myModal').modal('hide') | |
| /* | |
| $.post('http://path/to/post', | |
| $('#myForm').serialize(), | |
| function(data, status, xhr){ | |
| // do something here with response; |
This file contains hidden or 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
| [ | |
| "affenpinscher", | |
| "afghan hound", | |
| "afghan shepherd", | |
| "aidi", | |
| "airedale terrier", | |
| "akbash", | |
| "akita inu", | |
| "alano español", | |
| "alaskan klee kai", |
This file contains hidden or 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
| // CSS Color Names | |
| // Compiled by @bobspace. | |
| // | |
| // A javascript array containing all of the color names listed in the CSS Spec. | |
| // The full list can be found here: https://www.w3schools.com/cssref/css_colors.asp | |
| // Use it as you please, 'cuz you can't, like, own a color, man. | |
| const CSS_COLOR_NAMES = [ | |
| "AliceBlue", | |
| "AntiqueWhite", |
This file contains hidden or 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
| <?php | |
| /** | |
| * Input an object, returns a json-ized string of said object, pretty-printed | |
| * | |
| * @param mixed $obj The array or object to encode | |
| * @return string JSON formatted output | |
| */ | |
| function json_encode_pretty($obj, $indentation = 0) { | |
| switch (gettype($obj)) { | |
| case 'object': |
This file contains hidden or 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
| { | |
| "AL": "Alabama", | |
| "AK": "Alaska", | |
| "AS": "American Samoa", | |
| "AZ": "Arizona", | |
| "AR": "Arkansas", | |
| "CA": "California", | |
| "CO": "Colorado", | |
| "CT": "Connecticut", | |
| "DE": "Delaware", |
This file contains hidden or 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
| > Regular Expressions Cheat Sheet | |
| > A regular expression specifies a set of strings that matches it. This cheat sheet is based off Python 3's Regular Expressions (http://docs.python.org/3/library/re.html) but is designed for searches within Sublime Text. | |
| > Special Characters | |
| \ Escapes special characters or signals a special sequence. | |
| . Matches any single character except a newline. | |
| ^ Matches the start of the string. | |
| $ Matches the end of the string. | |
| * Greedily matches 0 or more repetitions of the preceding RE. | |
| *? Matches 0 or more repetitions of the preceding RE. |
This file contains hidden or 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 strict'; | |
| var gulp = require('gulp'); | |
| var gutil = require('gulp-util'); | |
| var sass = require('gulp-sass'); | |
| var pug = require('gulp-pug'); | |
| var babel = require('gulp-babel'); | |
| var livereload = require('gulp-livereload'); | |
| var zip = require('gulp-zip'); | |
| var rev = require('gulp-rev'); |
This file contains hidden or 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: 'Afghanistan', code: 'AF'}, | |
| {name: 'Åland Islands', code: 'AX'}, | |
| {name: 'Albania', code: 'AL'}, | |
| {name: 'Algeria', code: 'DZ'}, | |
| {name: 'American Samoa', code: 'AS'}, | |
| {name: 'AndorrA', code: 'AD'}, | |
| {name: 'Angola', code: 'AO'}, | |
| {name: 'Anguilla', code: 'AI'}, | |
| {name: 'Antarctica', code: 'AQ'}, |
This file contains hidden or 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
| [ | |
| { | |
| "code": "AFG", | |
| "name": "Afghanistan", | |
| "eu": false | |
| }, | |
| { | |
| "code": "ALA", | |
| "name": "Åland Islands", | |
| "eu": false |
NewerOlder