Skip to content

Instantly share code, notes, and snippets.

View slwen's full-sized avatar
🧊

Sam Enoka slwen

🧊
  • Canva
  • Australia
View GitHub Profile
@jfmengels
jfmengels / lodash-fp-documentation.md
Last active January 15, 2025 00:34
Generated docs for Lodash/fp. Help make them better at https://github.com/jfmengels/lodash-fp-docs
@hellonicolas
hellonicolas / gulpfile.js
Last active March 10, 2018 11:30
Build script to help convert Framer projects to Cordova iOS builds
var gulp = require('gulp'),
runSequence = require('run-sequence'),
coffee = require('gulp-coffee'),
htmlreplace = require('gulp-html-replace'),
del = require('del'),
copy = require('gulp-copy'),
wait = require('gulp-wait'),
gutil = require('gulp-util'),
cordova = require("cordova-lib").cordova;
@jamenlyndon
jamenlyndon / periscope.js
Last active September 9, 2015 06:00
Get data from periscope
// Convert CSV to JS Obj
function csvToObj(csv) {
var lines = csv.split("\n");
var result = [];
var headers = lines[0].split(",");
for (var i = 1; i < lines.length; i++) {
var obj = {};
var currentline = lines[i].split(",");
@DanHerbert
DanHerbert / fix-homebrew-npm.md
Last active March 26, 2026 21:24
Instructions on how to fix npm if you've installed Node through Homebrew on Mac OS X or Linuxbrew

OBSOLETE

This entire guide is based on an old version of Homebrew/Node and no longer applies. It was only ever intended to fix a specific error message which has since been fixed. I've kept it here for historical purposes, but it should no longer be used. Homebrew maintainers have fixed things and the options mentioned don't exist and won't work.

I still believe it is better to manually install npm separately since having a generic package manager maintain another package manager is a bad idea, but the instructions below don't explain how to do that.

Fixing npm On Mac OS X for Homebrew Users

Installing node through Homebrew can cause problems with npm for globally installed packages. To fix it quickly, use the solution below. An explanation is also included at the end of this document.

@kevin-smets
kevin-smets / iterm2-solarized.md
Last active March 30, 2026 03:50
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@slashdotdash
slashdotdash / index.html
Last active August 25, 2017 01:30
React + D3
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>React + D3</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="http://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.5.2/underscore.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/react/0.8.0/react.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/react/0.8.0/JSXTransformer.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/d3/3.3.13/d3.js"></script>
@thomasgohard
thomasgohard / .travis.yml
Last active December 21, 2015 19:49
How to enable Jekyll+Prose on a GitHub repository.
language: ruby
branches:
only:
- master
script:
- "bundle exec jekyll build"
- ./build.sh
@dergachev
dergachev / GIF-Screencast-OSX.md
Last active March 18, 2026 20:19
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: