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
# Download rbenv | |
if [ ! -d ~/.rbenv ]; then | |
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv | |
fi | |
cd ~/.rbenv | |
git reset --hard | |
git pull origin master | |
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
<snippet> | |
<content><![CDATA[ | |
public function ${1:relationship}() | |
{ | |
return \$this->belongsToMany(${1/^(.+)$/(?1\u$1:)/g}::class, {$2:table}); | |
} | |
]]></content> | |
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
<tabTrigger>belt</tabTrigger> | |
<!-- Optional: Set a scope to limit where the snippet will trigger --> |
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
Show hidden characters
[ | |
{ | |
"class": "sidebar_container", | |
// $base01: #586e75 | |
"layer0.tint": [88,110,117], | |
"layer0.opacity": 1.0, | |
"layer0.draw_center": false, | |
"layer0.inner_margin": [0, 0, 1, 0], | |
"content_margin": [0, 0, 1, 0] |
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
HelloSign.init("<?php echo $client_id ?>"); | |
HelloSign.open({ | |
url: "<?php echo $sign_url ?>", | |
allowCancel: true, | |
skipDomainVerification: true, |
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
/** | |
* Open file.csv and read all lines | |
**/ | |
var fs = require('fs'); | |
var casper = require('casper').create({ | |
verbose: true, | |
logLevel: 'error', | |
pageSettings: { |
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 | |
echo "Caddy v 0.1 from Customer.io" | |
ENDPOINT="https://app.customer.io/api/v1/customers/" | |
SITEID="YOUR SITE ID" | |
APIKEY="YOUR API KEY" | |
INPUT=users.csv | |
OLDIFS=$IFS |
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
function loadRelativeAssets() | |
{ | |
$routeArray = explode('.', Route::currentRouteName()); | |
// We take the current route, create an array form it, run it | |
// through the while statement checking to see if that file exists. | |
// If it does, we load it. Then we remove that last element | |
// from the array, and do it all again, until the array is empty | |
while (!empty($routeArray)) { | |
// Create the path to the js file |
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
var gulp = require('gulp'); | |
var sass = require('gulp-sass'); | |
var minifycss = require('gulp-minify-css'); | |
var autoprefixer = require('gulp-autoprefixer'); | |
var phpunit = require('gulp-phpunit'); | |
var notify = require('gulp-notify'); | |
var gutil = require('gulp-util'); | |
var exec = require('child_process').exec; | |
var sys = require('sys'); | |
var livereload = require('gulp-livereload'); |
NewerOlder