Skip to content

Instantly share code, notes, and snippets.

View CodeLenny's full-sized avatar

CodeLenny CodeLenny

  • Massachusetts
View GitHub Profile
@CodeLenny
CodeLenny / styler.meta.js
Last active August 31, 2016 20:04
GitLab Link Styler
// ==UserScript==
// @name GitLab Link Styler
// @namespace http://ryanleonard.us/
// @version 0.1
// @description Style closed issues and merge requests on GitLab
// @author Ryan Leonard
// @match http*://gitlab.com/*
// @grant GM_addStyle
// @grant GM_getValue
// @grant GM_setValue
@CodeLenny
CodeLenny / README.md
Last active January 3, 2016 17:48 — forked from Daniel15/1_README.md
Complete Google Drive File Picker example

Google Drive File Picker Example

This is an example of how to use the Google Drive file picker and Google Drive API to retrieve files from Google Drive using pure JavaScript. At the time of writing (14th July 2013), Google have good examples for using these two APIs separately, but no documentation on using them together.

Note that this is just sample code, designed to be concise to demonstrate the API. In a production environment, you should include more error handling.

See a demo at http://stuff.dan.cx/js/filepicker/google/

@CodeLenny
CodeLenny / HeadyFoods.coffee
Last active August 29, 2015 14:10
HeadyFoods Draft
class HeadyFoods
constructor: ->
@blade = require("node-blade")
# Add database connection
@mongoose = require("mongoose")
@Schema = @mongoose.Schema
@db = @mongoose.connect "mongodb://#{@config.db.host}:#{@config.db.port}/#{@config.db.database}"
@db.once "open", =>
@FoodItem = @createFoodItem()
@configureExpress()