Skip to content

Instantly share code, notes, and snippets.

View jgautheron's full-sized avatar
☁️
Learning

Jonathan Gautheron jgautheron

☁️
Learning
View GitHub Profile

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:

@jgautheron
jgautheron / file.go
Created January 4, 2016 12:48
switchenum
package main
const (
minimumCriteria itemCategory = iota
goodCitizen
extraCredit
)
type itemCategory byte
@jgautheron
jgautheron / gosublime.json
Created March 15, 2016 15:35
GoSublime config
{
"env": {
"GOPATH": "/Users/jonathangautheron/workspace/",
"PATH": "$PATH:/Users/jonathangautheron/workspace/bin"
},
"fmt_cmd": ["goimports"],
"on_save": [{
"cmd": "gs9o_open", "args": {
"run": [
"sh",
@jgautheron
jgautheron / about.md
Last active May 4, 2016 12:37 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer
@jgautheron
jgautheron / exago-testrunner.json
Created May 24, 2016 15:20
Exago's TestRunner JSON output
{
"packages": [
{
"name": "github.com/Sirupsen/logrus",
"coverage": 48,
"execution_time": 0.014,
"success": false,
"tests": [
{
"name": "TestEntryWithError",
@jgautheron
jgautheron / osx-for-hackers.sh
Created September 26, 2016 20:24 — forked from brandonb927/osx-for-hackers.sh
OSX for Hackers: Yosemite/El Capitan Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned. Also, please don't email me about this script, my poor inbox...
#!/bin/sh
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
@jgautheron
jgautheron / main.md
Last active September 24, 2019 06:31
Generic IT interview questions

Describe yourself

  1. Why do you want to work here?
  2. What can you do for this company?
  3. What are your key strengths or skills?
  4. What is your greatest weakness?

General technology question

  1. What did you learn yesterday/this week?
  2. What excites or interests you about coding?
  3. If you could master one technology this year, what would it be?
@jgautheron
jgautheron / CategorySagas.js
Created March 22, 2017 19:07 — forked from pesakitan22/CategorySagas.js
Redux-Saga for next.js
import {call, put, take, fork} from 'redux-saga/effects'
import {END} from 'redux-saga'
import CategoryActions, {CategoryTypes} from '../Redux/CategoryRedux'
// attempts to fetch category
export function* fetchCategoryServer (api) {
let action = yield take(CategoryTypes.CATEGORY_SERVER)
// check when it stopped
while (action !== END) {
yield fork(fetchCategoryAPI, api)
@jgautheron
jgautheron / errorHandler.js
Created May 10, 2017 14:52
Send client errors to the server
import ReactUpdates from 'react-dom/lib/ReactUpdates'
import ReactDefaultBatchingStrategy from 'react-dom/lib/ReactDefaultBatchingStrategy'
import 'isomorphic-fetch'
const logError = (err, extra = {}) => {
fetch('/logger', {
method: 'POST',
credentials: 'same-origin',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({