Skip to content

Instantly share code, notes, and snippets.

View glesage's full-sized avatar

Geoffroy Lesage glesage

View GitHub Profile
@glesage
glesage / sms.txt
Last active June 26, 2019 18:20
SMSes
sms[categories.WELCOME] = 'Welcome! %REFERRER% occasionally sends texts to keep you updated. Text STOP to stop receiving them. Text START to opt back in.';
sms[categories.NOT_FOUND] = 'Hello, we do not seem to have this number on our system. Please text your Laundry Bin # or "Pickup" to get started with our service.';
sms[categories.RE_PICKUP] = 'Hello, %REFERRER% was unable to pickup your order. Please schedule a new pickup time. %DEEP_LINK%';
sms[categories.RE_DELIVERY] = 'Hello, %REFERRER% was unable to deliver your order. Please click the link below to reschedule your delivery. %DEEP_LINK%';
sms[categories.CREDIT_CARD_REQ] = 'Hello from %REFERRER%. Your clothes are clean and ready to be delivered. Please enter your payment information at %RWO% or contact us at %PHONE%';
sms[categories.CREDIT_CARD_FAILED] = 'Hello from %REFERRER%. Your credit card was declined. Please click the link below to update your credit card information. %DEEP_LINK%';
sms[categories.SUBSCRIPTION_FAILED] = 'Oh no! Your credit card w
Using unf_ext 0.0.7.2
Using json 2.0.3
Using mime-types-data 3.2016.0521
Using mini_magick 4.7.0
Using netrc 0.11.0
Using bundler 1.14.6
Using unf 0.1.4
Using mime-types 3.1
Using domain_name 0.5.20170404
Using http-cookie 1.0.3
Running "karma:unit" (karma) task
WARN [watcher]: Pattern "/Users/jeff/Desktop/Starchup/sites/tidespin/client/bower_components/angular-resource/angular-resource.js" does not match any file.
WARN [watcher]: Pattern "/Users/jeff/Desktop/Starchup/sites/tidespin/client/bower_components/angular-cookies/angular-cookies.js" does not match any file.
WARN [watcher]: Pattern "/Users/jeff/Desktop/Starchup/sites/tidespin/client/bower_components/angular-sanitize/angular-sanitize.js" does not match any file.
WARN [watcher]: Pattern "/Users/jeff/Desktop/Starchup/sites/tidespin/client/bower_components/angular-route/angular-route.js" does not match any file.
WARN [watcher]: Pattern "/Users/jeff/Desktop/Starchup/sites/tidespin/client/bower_components/angular-socket-io/socket.js" does not match any file.
WARN [watcher]: Pattern "/Users/jeff/Desktop/Starchup/sites/tidespin/client/app/app.coffee" does not match any file.
WARN [watcher]: Pattern "/Users/jeff/Desktop/Starchup/sites/tidespin/client/app/**/*.coffee" does not match an
tidespin jeff$ grunt
Running "newer:jshint" (newer) task
Running "newer:jshint:server" (newer) task
No newer files to process.
Running "newer:jshint:serverTest" (newer) task
No newer files to process.
Running "newer:jshint:all" (newer) task
@glesage
glesage / providers.m
Last active August 29, 2015 14:28
branch providers
UIActivityItemProvider *itemProvider = [Branch getBranchActivityItemWithParams:params
feature:@"invite"
stage:@"logged_in"
tags:@[@"ios"]];
// VS //
AmbassadorProvider *activityItem = [[AmbassadorProvider alloc] initWithPlaceholderItem:@"Free laundry from Starchup!"];
@glesage
glesage / admin run script
Created August 16, 2015 19:53
admin run script
#!/bin/bash
# Admin run script
# Refresh bash environment
if [ "$(uname)" == "Darwin" ]; then
echo 'Mac: Refreshing ~/.bash_profile'
. ~/.bash_profile
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
echo 'Linux: Refreshing ~/.bashrc'
. ~/.bashrc
function getCookie(cookie){
var cookies = document.cookie.split(';');
var theCookie;
//loops through cookie finding the desired one
for (var x = 0; x < cookies.length; x++){
if (cookies[x].substring(0,cookies[x].indexOf('=')).indexOf(cookie) !== -1){
theCookie = cookies[x];
break;
}
01:22:33] Using gulpfile ~/Desktop/Starchup/sites/dashboard-v2/gulpfile.js
[01:22:33] Starting 'scripts'...
[01:22:33] Starting 'styles'...
index.config.js
✖ line 2 [stdin]:2:11: error: reserved word 'function'
.config(function($logProvider) {})
^^^^^^^^
✖ 1 error
@glesage
glesage / gist:ba18f096f04fd7e52659
Created June 18, 2015 00:51
Xcodebuild 6.3.1 error
xcodebuild[1851:5382] [MT] iPhoneSimulator: SimVerifier returned: Error Domain=NSPOSIXErrorDomain Code=53 "Simulator verification failed." UserInfo=0x7fca3a5199a0 {NSLocalizedFailureReason=A connection to the simulator verification service could not be established., NSLocalizedRecoverySuggestion=Ensure that Xcode.app is installed on a volume with ownership enabled., NSLocalizedDescription=Simulator verification failed.}
@glesage
glesage / gist:9d5d94add51a363cf539
Created June 17, 2015 04:42
Change all fonts except Gizmo to Proxima Nova
var doc = context.document;
var page = [doc currentPage];
var layers = [page children];
var font_name = "Proxima Nova";
function check_layer(layer)
{
if (!layer) return;