- Babel
- Case Conversion
- CSS Extended Completions
- DocBlockr
- EditorConfig
- ESLint-Formatter
- GitGutter
- Hex to HSL Color Converter
- HTML-CSS-JS Prettify
- JsFormat
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
Show hidden characters
{ | |
"coffee_autocomplete_plus_custom_types": [ | |
{ | |
"name": "ko", | |
"enabled": true, | |
"constructors": [ | |
{ | |
"args": [] | |
} | |
], |
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 empty_all() | |
{ | |
$query = $this->db->query("SHOW TABLES"); | |
$name = $this->db->database; | |
foreach ($query->result_array() as $row) | |
{ | |
$table = $row['Tables_in_' . $name]; | |
$this->db->query("TRUNCATE " . $table); | |
$this->db->query("ALTER TABLE ".$table." AUTO_INCREMENT = 1"); | |
} |
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
//validations | |
static $validates_presence_of = array( //TODO | |
//alterations | |
static $before_create = array('check_existence'); | |
function check_existence() | |
{ | |
$find_by = array(); | |
foreach(self::$validates_presence_of as $key) |
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
#!/usr/bin/env ruby | |
# Aside from removing Ruby on Rails specific code this is taken verbatim from | |
# mislav's git-deploy (http://github.com/mislav/git-deploy) and it's awesome | |
# - Ryan Florence (http://ryanflorence.com) | |
# | |
# Install this hook to a remote repository with a working tree, when you push | |
# to it, this hook will reset the head so the files are updated | |
if ENV['GIT_DIR'] == '.' |
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
### | |
Randomize array element order in-place. | |
Using Fisher-Yates shuffle algorithm. | |
### | |
shuffleArray = (array) -> | |
i = array.length - 1 | |
while i > 0 | |
j = Math.floor(Math.random() * (i + 1)) | |
temp = array[i] |
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
module.exports = (grunt) -> | |
# Livereload and connect variables | |
LIVERELOAD_PORT = 35729 | |
lrSnippet = require("connect-livereload")(port: LIVERELOAD_PORT) | |
mountFolder = (connect, dir) -> | |
connect.static require("path").resolve(dir) | |
grunt.initConfig | |
connect: | |
dev: |
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
var elem = this.$element.parent(), position, value; | |
while ( elem.length && elem[ 0 ] !== document ) | |
{ | |
// Ignore z-index if position is set to a value where z-index is ignored by the browser | |
// This makes behavior of this function consistent across browsers | |
// WebKit always returns auto if the element is positioned | |
position = elem.css( "position" ); | |
if ( position === "absolute" || position === "relative" || position === "fixed" ) { | |
// IE returns 0 when zIndex is not specified | |
// other browsers return a string |
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
// Supports pushing new items | |
"private": { | |
".read": false, | |
".write": false, | |
"$item": { | |
".read": "auth != null && auth.uid == data.child('uid').val()", | |
".write": "auth != null && | |
/*update*/ ((data.exists() && auth.uid == data.child('uid').val()) | |
/*new*/ || (!data.exists() && auth.uid == newData.child('uid').val()))" | |
} |
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
Check_Event: (ref, child, callback) -> | |
ref | |
.child child | |
.once 'value', (snapshot) -> | |
exists = snapshot.val() isnt null | |
callback exists | |
return |
OlderNewer