This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
# DESCRIPTION | |
# | |
# This is a simple Godot game that lets you move a sprite around in two ways: | |
# | |
# * by clicking, and then without moving, releasing. Then you can drag | |
# the sprite around without holding down the mouse button. When you | |
# want to drop the sprite, release the mouse button. | |
# | |
# * by clicking, and then while holding the mouse button down, dragging | |
# the sprite to where you want it by moving the mouse. When you want |
#include <iostream> | |
#include "steam_api.h" | |
//The Game Manager class is needed to handle Steamworks callbacks | |
class CGameManager | |
{ | |
public: | |
void CreateItem(); | |
bool finished = false; |
import mechanize | |
from lxml import etree | |
import json | |
__author__ = "https://github.com/SirFroweey/" | |
class SoundCloud: | |
""" |
require 'sidekiq/api' | |
# 1. Clear retry set | |
Sidekiq::RetrySet.new.clear | |
# 2. Clear scheduled jobs | |
Sidekiq::ScheduledSet.new.clear |
HTTP status code symbols for Rails | |
Thanks to Cody Fauser for this list of HTTP responce codes and their Ruby on Rails symbol mappings. | |
Status Code Symbol | |
1xx Informational | |
100 :continue | |
101 :switching_protocols | |
102 :processing |
gem 'devise', '3.2.4' | |
gem 'simple_token_authentication', '1.5.0' |
# install via Homebrew | |
brew install memcached | |
# optional: make memcached start along with the system | |
ln -sfv /usr/local/opt/memcached/*.plist ~/Library/LaunchAgents | |
# load memcached now for immediate use | |
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.memcached.plist | |
# check the process that just launched |