View sformat.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
/* | |
sformat(str, arg1, arg2, etc..) | |
USAGE: | |
============================================================== | |
sformat("{0}", "test"); //returns test | |
sformat("{{0}}"); //returns {0} | |
sformat("{{{0}}}", "test"); //returns {test} | |
sformat("{0} {0}", "test"); //returns test test | |
sformat("{0} {1}", "first", "second"); //returns first second |
View StackScript-LAMP
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 | |
# This block defines the variables the user of the script needs to input | |
# when deploying using this script. | |
# | |
# <UDF name="hostname" label="The hostname for the new Linode."> | |
# <UDF name="username" label="Add a user account to add to sudo"> | |
# <UDF name="password" label="The sudo user's password"> | |
# <UDF name="db_password" Label="MySQL root Password" /> | |
# <UDF name="db_name" Label="Database Name" default="" example="Create this database" /> | |
# <UDF name="db_name2" Label="Database 2 Name" default="" example="Create this database" /> |
View SampleLoader.php
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
<?php namespace Endata\Data; | |
use Illuminate\Support\Facades\DB; | |
use Illuminate\Support\Facades\File; | |
use Ingredient; | |
use Nutrient; | |
use Composition; | |
use Settings; | |
use Plant; | |
use Formula; |
View Nutrient.php
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
<?php | |
class Nutrient extends BaseModel { | |
protected $guarded = array(); | |
public static $rules = array( | |
'name' => 'required', | |
'unit' => 'required' | |
); |
View StripeBilling.php
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
<?php namespace Endata\Billing; | |
use Stripe; | |
use Stripe_Charge; | |
use Stripe_Customer; | |
use Stripe_InvalidRequestError; | |
use Stripe_CardError; | |
use Config; | |
use Exception; |
View .vimrc
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
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=/etc/vim/bundle/vundle | |
call vundle#begin('/etc/vim/bundle') " Use a shared folder | |
set number | |
set mouse=a | |
set term=xterm-256color |
View MailingList.php
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
<?php namespace Endata\Lists; | |
use MailChimp; | |
use Carbon\Carbon; | |
class MailingList { | |
protected $mailchimp; | |
protected $list_id = 'MCIDXXX'; // The MailChimp list id |
View IngredientTypesController.php
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
<?php | |
class IngredientTypesController extends BaseController { | |
/** | |
* Ingredient Types Repository | |
* | |
* @var IngredientType | |
*/ | |
protected $type; |
View gist:fd15902864d47696b9d5
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/sh | |
while true; | |
do | |
clear | |
git log \ | |
--graph \ | |
--all \ | |
--color \ | |
--date=short \ | |
-40 \ |
View build.sh
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
babel github-es6.js -o github.js --optional runtime --experimental |
OlderNewer