Skip to content

Instantly share code, notes, and snippets.

View electricshaman's full-sized avatar

Jeff Smith electricshaman

View GitHub Profile
@chrsstrm
chrsstrm / gas_sheet_as_json.js
Last active June 9, 2023 10:38
Treat a Google Sheet like a JSON API
/**
* create a Google Sheet then go to Tools > Script Editor
* Paste this code into the editor. Save.
* Publish > Deploy as Web App
* Set new version, publish as me, who has access - anyone, even anon.
* GET to the URL, add on end ?sheet=[sheet name]
* Sheet name is the sheet name, manage appropriately (no spaces or symbols to keep it simple)
* Request returns JSON representation of the sheet.
*/
@streetturtle
streetturtle / sp
Last active April 29, 2024 03:13 — forked from wandernauta/sp
sp is a command-line client for Spotify's dbus interface. Play, pause, skip and search tracks from the comfort of your command line.
#!/bin/bash
#
# This is sp, the command-line Spotify controller. It talks to a running
# instance of the Spotify Linux client over dbus, providing an interface not
# unlike mpc.
#
# Put differently, it allows you to control Spotify without leaving the comfort
# of your command line, and without a custom client or Premium subscription.
#
@plamb
plamb / okc_elixir.md
Created October 19, 2015 18:25
OKC Elixir Group

OKC Elixir Study Group -- DRAFT

###Disclaimer I have no freaking idea what I'm doing or if this will even work out but that's never really stopped me from trying. So let's see where it goes. Committing to a group that meets physically together was going to be tough, so I wondered how well a virtual group would work, no travel time, can do it after the kids go to bed, etc. I'm also going to put a time limit on this, both in how long the group meets and how long we do this.

##Concept Over the next 6 months, work through some of the problems in Brian Hogan's Exercises for Programmers using Elixir. Then once or twice a month, we will hold a 45-60 minute skype conference call to discuss problems we had and how we solved them.

###Format

Time Agenda
@yoavniran
yoavniran / ultimate-ut-cheat-sheet.md
Last active June 23, 2024 21:35
The Ultimate Unit Testing Cheat-sheet For Mocha, Chai, Sinon, and Jest
@CMCDragonkai
CMCDragonkai / angularjs_directive_attribute_explanation.md
Last active November 29, 2023 15:35
JS: AngularJS Directive Attribute Binding Explanation

AngularJS Directive Attribute Binding Explanation

When using directives, you often need to pass parameters to the directive. This can be done in several ways. The first 3 can be used whether scope is true or false. This is still a WIP, so validate for yourself.

  1. Raw Attribute Strings

    <div my-directive="some string" another-param="another string"></div>