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
| #!/bin/sh | |
| set -e | |
| set -x | |
| for package in $(npm -g outdated --parseable --depth=0 | cut -d: -f3) | |
| do | |
| npm -g install "$package" | |
| done |
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
| swagger: 2 | |
| info: | |
| title: The new Uber API | |
| description: Move your app forward with the Uber API | |
| version: "1.0.0" | |
| host: api.uber.com | |
| schemes: | |
| - https | |
| basePath: /v1 | |
| produces: |
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
| HOW TO USE ? | |
| Please add this file in to your Foundation 5 project. | |
| You must to add this file in to path_to_your_project/bower_components/foundation/scss | |
| Next add this @import path to your _foundation.scss file. | |
| @import "foundation/components/buttons-with-gradient"; | |
| Please create your custom button .class and @include btn-gradient-style @mixin in _buttons-with-gradient.scss file. | |
| Set your $color-start value for example #e74c3c. |
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
| #!/bin/bash | |
| # The binary is most likely to have the current directory name | |
| PROCESS=${PWD##*/} | |
| # We kill the previous process | |
| killall ${PROCESS} | |
| # We launch the process | |
| go build |
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
| .filter('timeago', function () { | |
| /* | |
| * time: the time | |
| * local: compared to what time? default: now | |
| * raw: wheter you want in a format of "5 minutes ago", or "5 minutes" | |
| */ | |
| // parse string date to milliseconds | |
| // Note: months are 0-based |
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
| Accessing docker container private network easily from your boot2docker host | |
| ----- | |
| (from http://ispyker.blogspot.com/2014/04/accessing-docker-container-private.html) | |
| add a Host-only adapter in VirtualBox | |
| OSX: | |
| # show route table | |
| netstat -nr |
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 node | |
| var IOS_DEPLOYMENT_TARGET = '7.0'; | |
| var fs = require("fs"), | |
| path = require("path"), | |
| shell = require("shelljs"), | |
| xcode = require('xcode'), | |
| projectRoot = process.argv[2]; |
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
| #!/bin/bash | |
| usage () | |
| { | |
| cat <<UsageHERE | |
| boot2docker-fwd -- Helper function to quickly manage port forwards between the boot2docker-vm and the host | |
| Usage: boot2docker-fwd [ -n RULE_NAME ] [ -h HOST_PORT ] [ -p {tcp|udp} ] [ -i HOST_IP ] GUEST_PORT | |
| or boot2docker-fwd -d RULE_NAME | |
| or boot2docker-fwd -l | |
| or boot2docker-fwd -A |
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
| // Wrapper for Harp web server, to include JS concat/compile step. Put your stuff | |
| // in /harp subdirectory, npm install your dependencies, run, enjoy. | |
| // Live updating of the concatenated JS file left as an exercise for the reader :) | |
| var fs = require('fs'); | |
| var path = require('path'); | |
| var harp = require('harp'); | |
| var UglifyJS = require('uglify-js'); | |
| var files = []; | |
| files.push(__dirname + '/harp/js/file0.js'); |
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
| /******************************************************************************* | |
| 1. DEPENDENCIES | |
| *******************************************************************************/ | |
| var gulp = require('gulp'); // gulp core | |
| sass = require('gulp-sass'), // sass compiler | |
| uglify = require('gulp-uglify'), // uglifies the js | |
| jshint = require('gulp-jshint'), // check if js is ok | |
| rename = require("gulp-rename"); // rename files | |
| concat = require('gulp-concat'), // concatinate js |