Skip to content

Instantly share code, notes, and snippets.

View jefflinwood's full-sized avatar

Jeff Linwood jefflinwood

View GitHub Profile
@jefflinwood
jefflinwood / tasklist.json
Last active October 15, 2022 12:52
Sample JSON File for Task List
[
{
"name": "Task 1",
"done": false
},
{
"name": "Task 2",
"done": true
}
]
package guide;
import com.twilio.twiml.TwiMLException;
import com.twilio.twiml.VoiceResponse;
import com.twilio.twiml.voice.Say;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
@jefflinwood
jefflinwood / merge.rb
Created November 26, 2016 03:13
Server Starter Kit Front End Merge Script
require 'fileutils'
class Repo
attr_accessor :git_repo, :dir_name, :front_end_dir
def initialize(git_repo,dir_name,front_end_dir)
@git_repo = git_repo
@dir_name = dir_name
@front_end_dir = front_end_dir
end
end
@jefflinwood
jefflinwood / MessagesApp.java
Created June 23, 2016 04:12
Simple Java microservice using Spark
package com.jefflinwood;
import static spark.Spark.delete;
import static spark.Spark.get;
import static spark.Spark.post;
import com.google.gson.Gson;
import java.util.HashMap;
import java.util.Map;
@jefflinwood
jefflinwood / web.rb
Created August 21, 2012 18:39
Sinatra-based web service to keep track of SMS subscribers to a Twilio phone number in Redis
require 'sinatra'
require 'twilio-ruby'
require 'redis'
configure do
uri = URI.parse(ENV["REDISTOGO_URL"])
REDIS = Redis.new(:host => uri.host, :port => uri.port, :password => uri.password)
end
get '/' do
@jefflinwood
jefflinwood / tweeter-keeper.rb
Created August 21, 2012 18:36
Stream incoming tweets to Twilio subscribers
require 'rubygems'
require 'tweetstream'
require 'twitter'
require 'yaml'
require 'date'
require 'time'
require 'twilio-ruby'
require 'redis'
config = YAML.load_file('config.yaml')
@jefflinwood
jefflinwood / DIOSView.h
Created March 17, 2012 16:27
Drupal iOS SDK with blocks instead of delegates - example DIOSView class, with implementation in DrupalMapApp
//
// DIOSView.h
// DrupalMapApp
//
// Created by Jeffrey Linwood on 3/17/12.
// Copyright (c) 2012 Jeff Linwood. All rights reserved.
//
#import <Foundation/Foundation.h>