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:
public static string GenerateSaltedSHA1(string plainTextString) | |
{ | |
HashAlgorithm algorithm = new SHA1Managed(); | |
var saltBytes = GenerateSalt(4); | |
var plainTextBytes = Encoding.ASCII.GetBytes(plainTextString); | |
var plainTextWithSaltBytes = AppendByteArray(plainTextBytes, saltBytes); | |
var saltedSHA1Bytes = algorithm.ComputeHash(plainTextWithSaltBytes); | |
var saltedSHA1WithAppendedSaltBytes = AppendByteArray(saltedSHA1Bytes, saltBytes); |
using System; | |
using System.Diagnostics; | |
using System.Runtime.InteropServices; | |
using System.Threading; | |
public static class CodeTimer | |
{ | |
public static void Initialize() | |
{ | |
Process.GetCurrentProcess().PriorityClass = ProcessPriorityClass.High; |
# http://www.mono-project.com/Compiling_Mono_on_OSX | |
# Version 3.2.6 | |
require 'formula' | |
class Mono < Formula | |
url 'http://download.mono-project.com/sources/mono/mono-3.2.6.tar.bz2' | |
sha1 '27a08194f21ab853c669f42a1435e3a6fc326b8b' | |
#url 'http://download.mono-project.com/sources/mono/mono-2.10.9.tar.bz2' | |
#sha1 '1a6e8c5a0c3d88d87982259aa04402e028a283de' |
using System.Web.Mvc; | |
using System.Web.Mvc.Html; | |
using System.Linq; | |
namespace Web.Extensions | |
{ | |
public static class HtmlHelpers | |
{ | |
public static MvcHtmlString MenuLink(this HtmlHelper htmlHelper, string linkText, string actionName, | |
string controllerName, bool onlyMatchCt = false, string[] relatedCts = null) |
class TestIntellijIdea < Cask | |
version '13.1.3' | |
sha256 'ae5239e0a5670dec88c39a5157103084d0ddd2c0b8d732d6af07764f0b98b624' | |
url 'http://dev-download.oceanwing.com/ideaIU-13.1.3.dmg' | |
homepage 'https://www.jetbrains.com/idea/index.html' | |
link 'IntelliJ IDEA 13.app' | |
caveats do | |
<<-EOS.undent |
# number | |
regexp=\d+(\.\d+)? | |
colours=white | |
======= | |
# ip | |
regexp=\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3} | |
colours=magenta | |
======= | |
# hwaddr | |
regexp=(\d|[A-Fa-f])+(\:(\d|[A-Fa-f])+)+ |
127.0.0.1 analytics.admob.com | |
127.0.0.1 api.admob.com | |
127.0.0.1 e.admob.com | |
127.0.0.1 c.admob.com | |
127.0.0.1 media.admob.com | |
127.0.0.1 mm.admob.com | |
127.0.0.1 mmv.admob.com | |
127.0.0.1 p.admob.com | |
127.0.0.1 r.admob.com | |
127.0.0.1 config.adsage.cn |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |