This file contains hidden or 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
#! /usr/bin/env python | |
import time | |
import subprocess | |
import shutil | |
import os | |
from logger import Logger | |
from config import Config | |
l = Logger(Config) |
This file contains hidden or 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
var lastIndexOf = function (hay, needle) { | |
var i = hay.split('').reverse().join('').indexOf( needle.split('').reverse().join('') ); | |
var result = -1; | |
if (i > -1) { | |
result = hay.length - (i + needle.length); | |
} | |
return result; | |
}; |
This file contains hidden or 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
// Warning Duplicate IDs | |
$('[id]').each(function(){ | |
var ids = $('[id="'+this.id+'"]'); | |
if(ids.length>1 && ids[0]==this) | |
console.warn('Multiple IDs #'+this.id); | |
}); |
This file contains hidden or 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
var parseQueryString = ( function () { | |
"use strict"; | |
return function (query) { | |
var match, | |
urlParams = {}, | |
pl = /\+/g, | |
search = /([^&=]+)=?([^&]*)/g, | |
decode = function (s) { return decodeURIComponent(s.replace(pl, " ")); }; | |
query = query || window.location.search; |
This file contains hidden or 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
----------- Payload: Adobe Photoshop CS6 Core_13.1.2_AdobePhotoshop13-Core 13.1.2.0 {xxxxxxxxx} ----------- | |
ERROR: DS015: Unable to read symlink target of source file "/Applications/Adobe Photoshop CS6/Adobe Photoshop CS6.app/Contents/Required/Plug-Ins/Extensions/FastCore.plugin/Contents/CodeResources"(Seq 2) | |
Please search the above error string(s) to find when the error occurred. | |
These errors resulted in installer Exit Code mentioned below. | |
------------------------------------------------------------------------------------- | |
Exit Code: 7 - Unable to complete Silent workflow. | |
Please see specific errors for troubleshooting. For example, ERROR: DS015, DW023 ... | |
*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=* |
This file contains hidden or 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
function camelcase (str) { | |
var arr; | |
if (str.length === 0) { | |
return; | |
} | |
arr = str.split('-'); | |
if (arr.length === 1) { | |
arr = str.split(' '); | |
} | |
if (arr.length === 1) { |
This file contains hidden or 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/sh | |
cut -d ':' -f1 < /dev/stdin | sort -u |
This file contains hidden or 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/sh | |
(for i in `git branch | colrm 1 2` ; do echo `git log --date=iso8601 -n 1 --pretty="format:[%ai] %h" $i` $i ; done) | sort -r |
This file contains hidden or 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
;; Desktop | |
;; naming is weird, but this is basically | |
;; saving the status of opened files | |
;; | |
(setq desktop-files-not-to-save "\\(^/[^/:]*:\\)") | |
(autoload 'desktop-save "desktop" nil t) | |
(autoload 'desktop-clear "desktop" nil t) | |
(autoload 'desktop-load-default "desktop" nil t) | |
(autoload 'desktop-remove "desktop" nil t) |
This file contains hidden or 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/sh | |
echo 'checking process' | |
PC=`pgrep Emacs` | |
if [ -z $PC ] | |
then | |
echo 'opening daemon' | |
Emacs --daemon | |
emacsclient -c & | |
else |