Skip to content

Instantly share code, notes, and snippets.

Avatar
🚫
dealing with family issues

Sarah Drasner sdras

🚫
dealing with family issues
View GitHub Profile
@philhawksworth
philhawksworth / freecodecamp_intro_to_jamstack.md
Last active Jun 4, 2021
freeCodeCamp - Introduction to JAMstack
View freecodecamp_intro_to_jamstack.md

freeCodeCamp Introduction to JAMstack

Here's a list of links to resources to accompany the "Introduction to JAMstack" video on freeCodeCamp, by Phil Hawksworth

Watch the video

JAMstack video

@vakila
vakila / SingleArrow.ipynb
Created Apr 12, 2019
Anjana Vakil, "The Universe in a Single Arrow", JSHeroes 2019
View SingleArrow.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View a-taste-from-ecmascript-2019_3.example.js
// This produces invalid ECMAScript String (before ES2019):
eval('"\u2028"');
// This is invalid as well:
eval('"\u2029"');
View a-taste-from-ecmascript-2019_2.example.js
function isValidJSON(text) {
try {
JSON.parse(text);
return true;
} catch {
return false;
}
}
View gif-from-tweet.md

gif-from-tweet

There are so many great GIFs out there and I want to have copies of them. Twitter makes that harder than it should be by converting them to MP4 and not providing access to the source material. To make it easier, I made a bash pipeline that takes a tweet URL and a filename, extracts the MP4 from that tweet and uses ffmpeg to convert back to GIF.

Dependencies

  • ffmpeg
    • macOS: brew install ffmpeg
    • Ubuntu/Debian: apt install ffmpeg
@siddharthkp
siddharthkp / reactivconf-2017-proposal.md
Last active Apr 17, 2020
Building applications for the next billion users
@jevakallio
jevakallio / reactiveconf-slam-poetry.md
Last active Jul 20, 2020
#ReactiveConf 2017 Lightning Talk Submission: JavaScript Slam Poetry
View reactiveconf-slam-poetry.md

TL;DR: If you want to see me perform a spoken word poem about JavaScript in front of 1000 people (and on video), please star this gist. If you're on mobile, you'll need to request desktop site.

JavaScript Slam Poetry

Javascript! Slam! Poetry!

@ddprrt
ddprrt / Gulpfile.js
Last active May 8, 2020
Gulp: Grabbing JavaScript assets from a CDN to add to your build pipeline
View Gulpfile.js
var gulp = require('gulp');
var source = require('vinyl-source-stream');
var request = require('request');
var merge = require('merge2');
var concat = require('gulp-concat');
var buffer = require('gulp-buffer');
/**
* 1. We request the latest jQuery version from the jQuery CDN. The
* request package allows for streaming. What we get in return
@CristinaSolana
CristinaSolana / gist:1885435
Created Feb 22, 2012
Keeping a fork up to date
View gist:1885435

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream