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
# I was encountering this exception | |
# Net::SMTPServerBusy: 401 4.1.7 Bad sender address syntax | |
# First I searched to see if there's any documentation around this issue, | |
# didn't find anything, so I wrote this snippet to find those invalid characters | |
require 'mail' | |
Mail.defaults do | |
delivery_method :smtp, { | |
:port => 25, |
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
source 'https://rubygems.org' | |
ruby '2.2.2' | |
gem 'sinatra' |
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
testing |
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
[ | |
{ | |
"color": "#F58F53", | |
"name": "Tramway 3A", | |
"number": "3A", | |
"route_name": "PONT GARIGLIANO - HOP G.POMPIDOU <-> PORTE DE VINCENNES" | |
}, | |
{ | |
"color": "", | |
"name": "Tramway 3B", |
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
class FriendlyIdSlug < ActiveRecord::Base | |
end |
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
package main | |
import "github.com/go-martini/martini" | |
func main() { | |
m := martini.Classic() | |
m.Get("/", func() string { | |
return "Hello world!" | |
}) | |
m.Run() |
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
express = require 'express' | |
session = require 'express-session' | |
morgan = require 'morgan' | |
app = express() | |
foursquare = require('node-foursquare')({ | |
secrets: { | |
clientId: process.env.CONSUMER_KEY, | |
clientSecret: process.env.CONSUMER_SECRET, | |
redirectUrl: 'http://last-places.dev/callback' |
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 | |
tag=$1 | |
date="$(git show $tag --format=%aD | head -1)" | |
GIT_COMMITTER_DATE="$date" git tag -a -f $tag $tag -m "node-reporter $tag" |
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
{ | |
"dependencies": { | |
"underscore": "^1.6.0", | |
"plist": "^1.0.1", | |
"optimist": "^0.6.1", | |
"async": "^0.9.0" | |
} | |
} |
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
Enter the path to store respositories (/Users/alioudiallo/sandbox/gethub if blank): | |
Your username and password will be used once to obtain a unique | |
authorization token from GitHub's API, which will be stored in | |
~/.gethubconfig. | |
Please enter your GitHub username: aliou | |
Please enter your GitHub password: | |
Post https://api.github.com/authorizations: x509: failed to load system roots and no roots provided |