Skip to content

Instantly share code, notes, and snippets.

View nobitagit's full-sized avatar
🕸️
The less I know the better

Aurelio nobitagit

🕸️
The less I know the better
View GitHub Profile
@nobitagit
nobitagit / Ruby Notepad Bookmarklet
Last active December 11, 2015 22:49 — forked from jakeonrails/Ruby Notepad Bookmarklet
Js Notepad Bookmarklet
data:text/html, <style type="text/css">#e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div id="e"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("e");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/javascript");</script>
/*!
* jQuery Tiny Pub/Sub - v0.X - 11/18/2010
* http://benalman.com/
*
* Original Copyright (c) 2010 "Cowboy" Ben Alman
* Dual licensed under the MIT and GPL licenses.
* http://benalman.com/about/license/
*
* Made awesome by Rick Waldron
*

Screencapture and animated gifs

I say "animated gif" but in reality I think it's irresponsible to be serving "real" GIF files to people now. You should be serving gfy's, gifv's, webm, mp4s, whatever. They're a fraction of the filesize making it easier for you to deliver high fidelity, full color animation very quickly, especially on bad mobile connections. (But I suppose if you're just doing this for small audiences (like bug reporting), then LICEcap is a good solution).

Capturing (Easy)

  1. Launch quicktime player
  2. do Screen recording

screen shot 2014-10-22 at 11 16 23 am

@nobitagit
nobitagit / GIF-Screencast-OSX.md
Created January 31, 2016 00:41 — forked from dergachev/GIF-Screencast-OSX.md
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:

@nobitagit
nobitagit / introrx.md
Created February 5, 2016 15:27 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@nobitagit
nobitagit / timeago.js
Created August 25, 2016 11:45 — forked from IbeVanmeenen/timeago.js
TimeAgo - ES6
// Epochs
const epochs = [
['year', 31536000],
['month', 2592000],
['day', 86400],
['hour', 3600],
['minute', 60],
['second', 1]
];
@nobitagit
nobitagit / iterm2.md
Last active August 24, 2023 12:16
iterm2 cheatsheet

This gist has been moved to its own Github repo, so it's easier to contribute with additions and corrections. Please open a PR there if you see any mistake, I don't track comments on here as there's no notification system for gists AFAIK. Thanks.

Tabs and Windows

Function Shortcut
Previous Tab + Left Arrow
Next Tab + Right Arrow
Go to Tab + Number
@nobitagit
nobitagit / index.html
Last active October 26, 2016 21:44 — forked from diggetybo/index.html
Linked Crosshair Dashboard
<!DOCTYPE html>
<meta charset="utf-8">
<title>Probability Response</title>
<meta http-equiv="X-UA-Compatible" content="IE=11">
<style>
body {
font: 24px play;
width: 700px;
height: 700px;
}
@nobitagit
nobitagit / force.js
Created February 23, 2017 16:02 — forked from bhurlow/force.js
d3 force layouts explained
var data = [
10,
32,
59,
21,
66,
32,
12,
92,
@nobitagit
nobitagit / s4di_ch01_exercises.sc
Created March 18, 2017 19:00 — forked from parambirs/s4di_ch01_exercises.sc
Solutions for "Scala for the Impatient", chapter 1 exercises
package src.exercises
import scala.math._
import BigInt.probablePrime
import util.Random
object chap01 {
// 1. In the Scala REPL, type 3. followed by the Tab key. What methods can be
// applied?
// => Do it in REPL. There are many methods including %, &, *, +, toByte, toChar etc.