Skip to content

Instantly share code, notes, and snippets.

View garrypolley's full-sized avatar
💭
Code and Stuff

Garry Polley garrypolley

💭
Code and Stuff
View GitHub Profile
@garrypolley
garrypolley / key_bindings.json
Last active December 10, 2015 19:08
My sublime text 2 settings
[
{ "keys": ["super+."], "command": "toggle_side_bar" },
{ "keys": ["super+shift+m"], "command": "toggle_minimap"},
{ "keys": ["super+p"], "command": "swap_case"},
{ "keys": ["super+shift+l"], "command": "lower_case" }
]
@dergachev
dergachev / GIF-Screencast-OSX.md
Last active July 17, 2024 14:20
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:

@garrypolley
garrypolley / git_rm_local.py
Last active December 21, 2015 07:09
Remove all non-remote branches from local development. GIT
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from subprocess import check_call
from subprocess import check_output
from subprocess import CalledProcessError
# First prune the list
check_call(['git', 'remote', 'prune', 'origin'])
@eevee
eevee / spabs.md
Last active February 20, 2024 08:29
tabs to spaces
@ismasan
ismasan / sse.go
Last active July 21, 2024 12:23
Example SSE server in Golang
// Copyright (c) 2017 Ismael Celis
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
// The above copyright notice and this permission notice shall be included in all
@garrypolley
garrypolley / tricks.md
Last active August 28, 2015 15:41
Useful sublime tricks

Below are some tricks for sublime text that make it easier and/or cool to work with.

"Zoom" in only one pane

This was a question I posed out to [stack overflow][zoom-in-pane] and it got a great answer.

  1. ctlr + `