brew install fish
Symlink the config folder:
ln -sf ~/PATH/TO/DROPBOX/FISH/CONFIG ~/.config/
// Add a border and a shadow to layer in Xamarin.iOS. | |
// View is a UIView subclass. | |
// Bottom border | |
var border = new CALayer(); | |
border.Frame = new RectangleF(0, view.Frame.Height, view.Frame.Width, 1); | |
border.BackgroundColor = UIColor.Black.CGColor; | |
// Bottom gradient | |
var gradient = new CAGradientLayer(); |
{% capture header %} | |
{% if page.title %} | |
<meta property="og:type" content="article" /> | |
<meta property="og:title" content="{{ page.title }}" /> | |
{% else %} | |
<meta property="og:type" content="website" /> | |
{% endif %} | |
{% if site.title %} |
[ | |
{ "keys": ["ctrl+shift+tab"], "command": "prev_view" }, | |
{ "keys": ["ctrl+tab"], "command": "next_view" } | |
] |
# To create a pre-commit hook: | |
# cd .git/ && mkdir hooks && cd hooks && touch pre-commit && chmod +x pre-commit | |
# ------------------------------------------------------- | |
# PUPPET-LINT | |
# ------------------------------------------------------- | |
#!/bin/bash | |
# Requires bash, as it uses the [[ ]] syntax. | |
# |
Create an app with Automator that shows a notification and play a sound (available here).
Put it in your /Applications folder.
Type this in a shell:
<?php | |
date_default_timezone_set("Europe/Paris"); | |
$date = exif_read_data($argv[1],"EXIF"); | |
$date = $date["DateTimeOriginal"]; | |
$time = date_parse_from_format("Y:m:d H:i:s",$date); |
#!/usr/bin/env ruby | |
# Example (crop at 100x100): | |
# convert_images.rb -x 100 -y 100 | |
require 'optparse' | |
# This script needs imagemagick. | |
if !system("which convert > /dev/null 2>&1") | |
puts "Abort! Require ImageMagick." |
#!/usr/bin/env bash | |
# Example: | |
# $ convert -background none -fill white -font font.ttf -pointsize 8 label:"CHARSET" bitmap.png | |
CHARSET='!"#$&'\''()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~' | |
convert -background none -fill white -font 04B03.ttf -pointsize 8 label:"$CHARSET" bitmap.png |
<?xml version="1.0"?> | |
<!DOCTYPE bulletml SYSTEM "bulletml.dtd"> | |
<bulletml type="horizontal" xmlns="http://www.asahi-net.or.jp/~cs8k-cyu/bulletml"> | |
<action label="top"> | |
<repeat> | |
<!-- Main Loop --> | |
<times>99999</times> | |