Skip to content

Instantly share code, notes, and snippets.

@neil-s
neil-s / issue.ipynb
Created March 10, 2016 00:34
Async writes issue
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@neil-s
neil-s / packages
Created February 29, 2016 23:00
Packages in my Meteor app
# Meteor packages used by this project, one per line.
# Check this file (and the other files in this directory) into your repository.
#
# 'meteor add' and 'meteor remove' will edit this file for you,
# but you can also edit it by hand.
meteor-base # Packages every Meteor app needs to have
mobile-experience # Packages for a great mobile UX
mongo # The database Meteor supports right now
blaze-html-templates # Compile .html files into Meteor Blaze views
@neil-s
neil-s / attempt2.js
Last active August 29, 2015 14:06
This is the faulty code trying to secure the doorbell widget.
window.doorbellOptions = {
appKey: MY_APP_KEY
};
jQuery.ajax({
url: "/get-doorbell-secret/",
success: function (data) {
$.each(data, function (key, val){
window.doorbellOptions[key] = val
})
function onOpen(e) {
SpreadsheetApp.getUi().createAddonMenu()
.addItem('Start', 'showLoginSidebar')
.addToUi();
}
function onInstall(e) {
onOpen(e);
}
@neil-s
neil-s / keybase.md
Created February 21, 2014 13:22
My Keybase verification

Keybase proof

I hereby claim:

  • I am neil-s on github.
  • I am neil (https://keybase.io/neil) on keybase.
  • I have the public key with fingerprint 225E B71F 5570 6F47 EEBF  829F FD03 E888 0213 03F8

To claim this, I am signing this object:

@neil-s
neil-s / gruntfile.js
Created January 3, 2014 23:04
Gruntfile that has issues with injecting livereload script.
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
sass: {
options: {
includePaths: ['bower_components/foundation/scss']
},
dist: {
options: {
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
namespace RevolutionizeTesting
@neil-s
neil-s / README.md
Last active December 27, 2015 10:29 — forked from JoelBesada/README.md

This is an example command for Backtick. A Backtick command consists of some executable JavaScript and a bit of metadata in JSON.

Here are the required steps to create a command:

  1. Create a new Gist with a command.js and command.json file.

  2. Write your JavaScript in command.js. This will be injected into and executed on the page the user is currently on when they run it.

  3. Add some metadata to the command.json file:

  • name: The name of the command.
@neil-s
neil-s / hello.cpp
Last active December 17, 2015 19:19
Basic stack implementation. Segfaults.
#include <iostream>
#include "hello.hh"
template<class T> void Stack<T>::append(T val) {
Item **pp = &head;
while(*pp) {pp = &((*pp)->next);}
*pp = new Item(val);
}
template<class T> void Stack<T>::push(T val) {