Skip to content

Instantly share code, notes, and snippets.

View cwonrails's full-sized avatar

Chris Watson cwonrails

View GitHub Profile
@chasegenie
chasegenie / digital-ocean-image-collection
Created October 17, 2014 07:56
digital-ocean-image-collection
[{
"images" => {
"id" => 6859908, "is_global" => false, "user_id" => 73694, "is_public" => true, "name" => "CoreOS (alpha) 471.1.0", "filename" => "coreos-alpha-471.1.0-201410152115.raw.sparse.gz", "region_id" => 8, "operating_system_id" => nil, "created_at" => "2014-10-16T01:36:45Z", "updated_at" => "2014-10-16T14:46:19Z", "droplet_id" => nil, "description" => nil, "distribution_id" => 15, "image_type_id" => nil, "is_deleted" => false, "filesize" => 205931481, "md5sum" => "b05d3d74b64d141c0ee1602a5a22bf49", "kernel" => nil, "initrd" => nil, "cmdline" => nil, "maxsize" => nil, "is_x32" => nil, "is_gui" => nil, "actualsize" => nil, "is_snapshot" => true, "is_backup" => nil, "is_application" => nil, "is_base" => true, "is_iso" => nil, "is_archive" => nil, "is_temporary" => nil, "delete_at" => nil, "error_count" => nil, "is_disk_resizable" => nil, "image_kernel_id" => nil, "is_do" => true, "is_locked" => nil, "minsize" => nil, "inodes_used" => nil, "glacier_archive_id" => "fi0OPS_4u_V5JzhdWXyT8bgaMlQ
@gaspanik
gaspanik / Fetch.sublime-settings
Last active November 3, 2015 19:24
ST: Fetch files & packages
{
"files":
{
"Chart.js": "https://github.com/nnnick/Chart.js",
"Modernizr.js": "http://modernizr.com/downloads/modernizr-latest.js",
"Normalize.css 1.x": "https://github.com/necolas/normalize.css/blob/v1.1.3/normalize.css",
"Normalize.css 2.x": "https://github.com/necolas/normalize.css/blob/v2.1.3/normalize.css",
"Normalize.css 3.x": "https://raw.githubusercontent.com/necolas/normalize.css/master/normalize.css",
"Respond.js": "https://github.com/scottjehl/Respond/blob/master/dest/respond.min.js",
"Sanitize.css": "https://raw.github.com/ZDroid/sanitize.css/master/sanitize.css",
@creynders
creynders / keystone.xml
Created March 17, 2015 10:26
Keystone code style scheme for Webstorm/PHPStorm
<!-- save to
Mac OS X: ~/Library/Preferences/{WebIdeXX}/codestyles
-->
<code_scheme name="keystone">
<JSCodeStyleSettings>
<option name="INDENT_PACKAGE_CHILDREN" value="1" />
<option name="SPACE_BEFORE_TYPE_COLON" value="true" />
<option name="SPACE_AFTER_TYPE_COLON" value="true" />
<option name="ALIGN_OBJECT_PROPERTIES" value="2" />
<option name="SPACE_BEFORE_FUNCTION_LEFT_PARENTH" value="false" />
@hamsterbacke23
hamsterbacke23 / gulpfile.js
Last active December 18, 2015 06:07
gulp standard
var gulp = require('gulp'),
sass = require('gulp-sass'),
autoprefixer = require('gulp-autoprefixer'),
minifycss = require('gulp-minify-css'),
jshint = require('gulp-jshint'),
uglify = require('gulp-uglify'),
rename = require('gulp-rename'),
imagemin = require('gulp-imagemin'),
notify = require('gulp-notify'),
concat = require('gulp-concat'),
cat ~/.ssh/id_rsa.pub | ssh root@<HOSTNAME_OR_IP> 'cat >> ~/.ssh/authorized_keys'
module.exports = function(gee) {
return {
scripts: {
src: "src/**/*.js",
pipe: function() { return [jshint(), concat(), uglify(), dest('dist/all.js')] }
}
};
};
// to watch? simple, add -w flag
@magsout
magsout / webpack.config.js
Created July 13, 2015 13:06
Webpack + cssnext-loader + stylelint + file-loader
// webpack.config.js
var webpack = require("webpack")
var ExtractTextPlugin = require("extract-text-webpack-plugin")
var path = require("path")
var options = require("minimist")(process.argv.slice(2))
var pathDest = (options.docs) ? "./docs" : "./build"
var cssnext = require("cssnext-loader")
var configSuitcss = require("stylelint-config-suitcss")
var ext = function ext() {
@dgeb
dgeb / ember-cli-test-loader.md
Created September 10, 2014 20:19
ember-cli-test-loader.js

Definition of TestLoader as a class in ember-cli-test-loader:

(function() {
define("ember-cli/test-loader",
  [],
  function() {
    "use strict";

 var TestLoader = function() {
@dwelch2344
dwelch2344 / gulp-flat-copy.js
Created February 13, 2014 04:23
A simple GulpJS plugin for copying resources into a specific folder (and not retaining their previous path)
var path = require('path');
var through = require('through');
var File = require('gulp-util').File;
module.exports = function(){
var files = [];
function onStream(file){
files.push(file);
}