Skip to content

Instantly share code, notes, and snippets.

#container, #content {
width: 1640px !important;
margin-left: -10px;
}
#left_column {
width: 1280px !important;
}
.#right_column {
@suvene
suvene / 0_reuse_code.js
Created December 20, 2013 17:40
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
function formatMicrotime($time, $format = null){
if (is_null($format)) {
$formated = sprintf('%0.5f', $time);
} else {
$sec = (int)$time;
$msec = (int)(($time - $sec) * 100000);
$formated = date($format, $sec) . '.' . $msec;
}
return $formated;
}
function spderSubmit(formName, method, action, controllerResourceName, subsystemName) {
openLayer();
var pathNames = (location.pathname + '/').split('/');
if (method == undefined) {
method = 'get';
}
if (subsystemName == undefined) {
subsystemName = pathNames[1];
@suvene
suvene / gist:2eb7c76841cce8d8e79c
Created September 19, 2014 17:13
HomebrewでエラーになるのでMonoをごっそり消す - nabetama's blog
#!/bin/sh -x
#This script removes Mono from an OS X System. It must be run as root
rm -r /Library/Frameworks/Mono.framework
rm -r /Library/Receipts/MonoFramework-*
for dir in /usr/bin /usr/share/man/man1 /usr/share/man/man3 /usr/share/man/man5; do
(cd ${dir};