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:
using System.Linq; | |
using System.Reflection; | |
namespace SimpleMapper | |
{ | |
public static class SimpleMapper | |
{ | |
private static TTarget MapTo<TSource, TTarget>(this TSource aSource, TTarget aTarget) | |
{ | |
const BindingFlags flags = BindingFlags.Public | BindingFlags.Instance; |
function parseVersion(str) | |
{ | |
if (typeof(str) != 'string') { return false; } | |
var arr = str.split('.'); | |
// parse int or default to 0 | |
var maj = parseInt(arr[0]) || 0; | |
var min = parseInt(arr[1]) || 0; | |
var rest = parseInt(arr[2]) || 0; |
# Install Fira Code font family on macOS using Homebrew Cask • https://github.com/tonsky/FiraCode/wiki/Installing | |
brew tap homebrew/cask-fonts | |
brew cask install font-fira-code |
# remote replacement - replaces master with the contents of otherbranch | |
git push -f origin other-branch:master | |
# local replacement | |
git checkout beta | |
git branch -f alfa |
#!/bin/sh | |
set -e | |
for cask in $(brew cask outdated | awk '{ print $1 }'); do | |
brew cask uninstall --force "${cask}" | |
brew cask install "${cask}" | |
done |
git config --global diff.tool opendiff | |
git config --global difftool.opendiff.cmd 'opendiff "$LOCAL" "$REMOTE"' |
#!/bin/bash | |
scriptdir=`dirname "$BASH_SOURCE"` | |
cd $scriptdir/.. # NOTE: Change location if necessary! | |
qmake -spec macx-xcode -r && qmake -r |
#!/bin/bash | |
# Sometimes you need to move your existing git repository | |
# to a new remote repository (/new remote origin). | |
# Here are a simple and quick steps that does exactly this. | |
# | |
# Let's assume we call "old repo" the repository you wish | |
# to move, and "new repo" the one you wish to move to. | |
# | |
### Step 1. Make sure you have a local copy of all "old repo" | |
### branches and tags. |
namespace WordToPDF | |
{ | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using Microsoft.Office.Interop.Word; | |
using System.IO; | |
// Saves a Micrsoft Word document to PDF. |