Skip to content

Instantly share code, notes, and snippets.

Andrew Conti agconti

Block or report user

Report or block agconti

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View minimal-request.js
const http = require("http")
const getWeather = () => new Promise((resolve, reject) => {
const options = {
hostname: '',
path: '/dist/index.json',
method: 'GET',
http.get(options, (res) => {
View d3-city-data.json
[{"date":"2011-10-01T04:00:00.000Z","New York":63.4,"San Francisco":62.7,"Austin":72.2},{"date":"2011-10-02T04:00:00.000Z","New York":58,"San Francisco":59.9,"Austin":67.7},{"date":"2011-10-03T04:00:00.000Z","New York":53.3,"San Francisco":59.1,"Austin":69.4},{"date":"2011-10-04T04:00:00.000Z","New York":55.7,"San Francisco":58.8,"Austin":68},{"date":"2011-10-05T04:00:00.000Z","New York":64.2,"San Francisco":58.7,"Austin":72.4},{"date":"2011-10-06T04:00:00.000Z","New York":58.8,"San Francisco":57,"Austin":77},{"date":"2011-10-07T04:00:00.000Z","New York":57.9,"San Francisco":56.7,"Austin":82.3},{"date":"2011-10-08T04:00:00.000Z","New York":61.8,"San Francisco":56.8,"Austin":78.9},{"date":"2011-10-09T04:00:00.000Z","New York":69.3,"San Francisco":56.7,"Austin":68.8},{"date":"2011-10-10T04:00:00.000Z","New York":71.2,"San Francisco":60.1,"Austin":68.7},{"date":"2011-10-11T04:00:00.000Z","New York":68.7,"San Francisco":61.1,"Austin":70.3},{"date":"2011-10-12T04:00:00.000Z","New York":61.8,"San Francisco":61.5,"A
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
<title>Bonjourno World</title>
<script id="vertex-shader" type="text/vertex-shader">
* Multiply each vertex by the model-view matrix
agconti /
Created May 4, 2016
How to reference packages installed with jspm with when TypeScript and Atom


Packages installed with jspm can't be found when trying to import them using TypeScript with Atom.


Update your tsconfig.json to use the "filesGlob" property. This specifies all the files that Atom TypeScript should look at for import. By default Atom only looks at pacakges installed in node_modules.


To get a list of the issues for one of your repositories:

curl -H "Authorization: token OAUTH-TOKEN"

Then grep to your heart's desire.

agconti / fizzBuzz.swift
Created Dec 14, 2015
FrizzBuzz in swift
View fizzBuzz.swift
func frizzBuzz(range:Int) -> Void {
for num in 1..<range {
var output:String = "";
if num % 3 == 0 {
output = "frizz";
if num % 5 == 0 {
output += "buzz";

Setup docs

Create and activate a virtualenv:

virtualenv env
source env/bin/activate

Install dependencies:

agconti / slugify.js
Created Oct 21, 2015 — forked from mathewbyrne/slugify.js
Javascript Slugify
View slugify.js
function slugify(text)
return text.toString().toLowerCase()
.replace(/\s+/g, '-') // Replace spaces with -
.replace(/[^\w\-]+/g, '') // Remove all non-word chars
.replace(/\-\-+/g, '-') // Replace multiple - with single -
.replace(/^-+/, '') // Trim - from start of text
.replace(/-+$/, ''); // Trim - from end of text
You can’t perform that action at this time.