Skip to content

Instantly share code, notes, and snippets.

View simonholgate's full-sized avatar

Simon Holgate simonholgate

View GitHub Profile
@mderazon
mderazon / .travis.yml
Last active April 13, 2020 11:05
Automatic deployment to Google Cloud Functions with Travis-ci
# Use Dockerized infrastructure
sudo: false
# Use node_js environnement
language: node_js
node_js:
- "6"
# Cache Gcloud SDK between commands
cache:
@babo
babo / lambda.py
Created December 17, 2015 11:55
Simple AWS lambda job to create an SQS event for each S3 events.
#!/usr/bin/env python
import argparse
import logging
try:
from urllib import splittype
except ImportError:
from urllib.parse import splittype
import boto3
@johnmckerrell
johnmckerrell / Hangman.clj
Last active October 19, 2017 01:16
Very basic clojure Hangman using recursion
(ns hangman.core
(:gen-class)
(:require [clojure.string :as str]))
(defn is_char_in_words?
"Is the char in the words?"
[ch words]
(if (= ch "")
false
(> (.indexOf words ch) -1)
@fiinom
fiinom / application.js
Created March 14, 2012 05:58
Kickoff labs from node.js
const models = require('../models');
const http = require('http');
const querystring = require('querystring');
exports.index = function(req, res, next){
console.log("isAdmin: ", req.session["isAdmin"]);
res.render('application/index', {
auth: req.getAuthDetails(),
session: req.session
});
@jennifersmith
jennifersmith / gist:1210406
Created September 12, 2011 01:20
clojure facebook graph api
(with-facebook-auth @facebook-auth-token (client/get [:me :friends] {:extract :data})) :