Skip to content

Instantly share code, notes, and snippets.

View sephcoster's full-sized avatar

Seph Coster sephcoster

View GitHub Profile
@mshafrir
mshafrir / states_hash.json
Created May 9, 2012 17:05
US states in JSON form
{
"AL": "Alabama",
"AK": "Alaska",
"AS": "American Samoa",
"AZ": "Arizona",
"AR": "Arkansas",
"CA": "California",
"CO": "Colorado",
"CT": "Connecticut",
"DE": "Delaware",
@egaumer
egaumer / DSL Examples
Last active June 26, 2019 20:21
Some example queries using elastic.js
# simple match all query with term facet
ejs.Request()
.indices("myindex")
.types("mytype")
.query(ejs.MatchAllQuery())
.facet(
ejs.TermsFacet('url')
.field('url')
.size(20))
@dergachev
dergachev / GIF-Screencast-OSX.md
Last active May 17, 2024 02:53
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@jedsundwall
jedsundwall / measured-voice-terms-of-service.md
Last active December 18, 2015 18:29
This gist contains Measured Voice's government-friendly terms of service, which you can see at http://measuredvoice.com/terms. Measured Voice owns the copyright to these terms, but you are free to copy them for your own use under a the Creative Commons Attribution-ShareAlike 3.0 license (http://creativecommons.org/licenses/by-sa/3.0/). We want t…

Measured Voice Terms of Service

Amended on 25 January, 2013

1. Your Acceptance of Terms

1.1 Your use of Measured Voice and the Measured Voice web site (collectively referred to as the “Service”), is subject to the terms of a legal agreement (“Terms”) between you and Captura Group Inc., DBA Measured Voice (“Measured Voice”). The following Terms of Services ("TOS") explains the agreement and the terms of that agreement.

1.2 In order to use the Service, you must first agree to the Terms. You may not use the Service if you do not accept the Terms. You can accept the Terms by (a) actually using the Service, or (b) clicking a box where such box is made available to you. If you do not agree to any of the following Terms, please do not use the Service. You should print or otherwise save a copy of these TOS for your records.

@sephcoster
sephcoster / GSAgility-ToS.md
Last active December 19, 2015 10:39 — forked from jedsundwall/measured-voice-terms-of-service.md
Terms of Service for GSA and Government customers using a Software as a Service application, as forked from Measured Voice's terms of service.

GSAgility Terms of Service

Amended 4 July, 2013

1. Your Acceptance of Terms

1.1 Your use of GSAgility and the GSAgility web site (collectively referred to as the “Service”), is subject to the terms of a legal agreement (“Terms”) between you and Captura Group Inc., DBA GSAgility (“GSAgility”). The following Terms of Services ("TOS") explains the agreement and the terms of that agreement.

1.2 In order to use the Service, you must first agree to the Terms. You may not use the Service if you do not accept the Terms. You can accept the Terms by (a) actually using the Service, or (b) clicking a box where such box is made available to you. If you do not agree to any of the following Terms, please do not use the Service. You should print or otherwise save a copy of these TOS for your records.

@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>
# Based on https://gist.github.com/fernandoaleman/5083680
# Start the old vagrant
$ vagrant init ubuntu_saucy
$ vagrant up
# You should see a message like:
# [default] The guest additions on this VM do not match the install version of
# VirtualBox! This may cause things such as forwarded ports, shared
# folders, and more to not work properly. If any of those things fail on
@sghall
sghall / gist:7859113
Last active August 3, 2018 11:37
Helper function for creating a d3 chord diagram
// blog-post - http://www.delimited.io/blog/2013/12/8/chord-diagrams-in-d3
//*******************************************************************
// CHORD MAPPER
//*******************************************************************
function chordMpr (data) {
var mpr = {}, mmap = {}, n = 0,
matrix = [], filter, accessor;
mpr.setFilter = function (fun) {
filter = fun;
@staltz
staltz / introrx.md
Last active May 24, 2024 07:56
The introduction to Reactive Programming you've been missing
@caseywatts
caseywatts / 0 - Chrome Workshop.md
Last active August 30, 2023 06:48
Chrome Extension Workshop