#Mac OS X
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
puts "Called from: #{File.expand_path(File.dirname("."))}" | |
puts __FILE__ | |
puts "last: " + File.dirname(__FILE__).split("/").last | |
puts pwd = File.expand_path(File.dirname(__FILE__)) | |
puts "parent dir:" | |
ar = pwd.split("/") | |
puts "/#{ar[ar.length-2]}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@media only screen and (min-device-width: 320px) and (max-device-width: 1024px) | |
html | |
-webkit-text-size-adjust: none |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from xml.dom import minidom | |
import json | |
config = { | |
'svg_file' : 'map.svg', | |
'js_file' : 'map.js', | |
'js_var' : 'svgMap' | |
} | |
svg = minidom.parse(config['svg_file']) |
#Mac OS X
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Custom.css | |
* WebKit Inspector styles for Google Chrome | |
* | |
* by Scott Buchanan <[email protected]> | |
* http://wafflesnatcha.github.com | |
* | |
* Fugue Icons by Yusuke Kamiyamane | |
* http://p.yusukekamiyamane.com | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Blur.h> | |
#define ASSERT_BLUR_SETUP() { \ | |
if(!is_setup) { \ | |
printf("ERROR: not setup.\n"); \ | |
return; \ | |
} \ | |
} | |
Blur::Blur() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# log into your server | |
ssh root@[server ipaddress] | |
# change root password | |
passwd | |
# update all packages and operating system | |
apt-get update && apt-get --yes upgrade |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This little script creates incremental rsync backups from my | |
# external Lightroom Library (but could be anything) to another | |
# external harddrive. Backups are important, you know. | |
# The result looks like this: | |
# | |
# 20120105-1759 | |
# 20120107-1928 |
OlderNewer