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:
| 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. |
| ## within current branch, squashes all commits that are ahead of master down into one | |
| ## useful if you merged with upstream in the middle of your commits (rebase could get very ugly if this is the case) | |
| ## commit any working changes on branch "mybranchname", then... | |
| git checkout master | |
| git checkout -b mybranchname_temp | |
| git merge --squash mybranchname | |
| git commit -am "Message describing all squashed commits" | |
| git branch -m mybranchname mybranchname_unsquashed | |
| git branch -m mybranchname |
| // Mocked Service | |
| angular.module('mock.users', []). | |
| factory('UserService', function($q) { | |
| var userService = {}; | |
| userService.get = function() { | |
| return { | |
| id: 8888, | |
| name: "test user" | |
| } |
| var data = [ | |
| 10, | |
| 32, | |
| 59, | |
| 21, | |
| 66, | |
| 32, | |
| 12, | |
| 92, |
| // X-browser print local datetime w/ yyyy-MM-dd HH:mm:ss TZInfo format | |
| // e.g. 2014-11-20 03:16:26 GMT+0900 (JST) | |
| // @author noromanba http://flavors.me/noromanba | |
| // @license CC0 Univ PD http://creativecommons.org/publicdomain/zero/1.0 | |
| // c.f. | |
| // https://gist.github.com/noromanba/6736822 | |
| // http://let.hatelabo.jp/noromanba/let/hJmcrJfO94ka/rev/hJmcruLM2p0H | |
| // http://let.hatelabo.jp/noromanba/let/hJmcrJfO94ka | |
| var toDateTimeTZInfoString = (function () { |
| function Foo(who) { | |
| this.me = who; | |
| } | |
| Foo.prototype.identify = function() { | |
| return "I am " + this.me; | |
| }; | |
| function Bar(who) { | |
| Foo.call(this,"Bar:" + who); |
| /* | |
| * Copyright (C) 2012 Eike Send | |
| * | |
| * 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: | |
| * |
| <nav> | |
| <a href="#" id="activateMenu"> | |
| <svg width="30" height="30" id="icoOpen"> | |
| <path d="M0,5 30,5" stroke="#000" stroke-width="5"/> | |
| <path d="M0,14 30,14" stroke="#000" stroke-width="5"/> | |
| <path d="M0,23 30,23" stroke="#000" stroke-width="5"/> | |
| </svg> | |
| <svg width="30" height="30" id="ico"> |