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
There's bummer errors on installing ImageMagick on Yosemite (as I write this, I'm on DP5). Here's the errors and fixes at the terminal. | |
Homer: jason$ brew reinstall --debug freetype | |
/usr/local/Library/brew.rb (Formulary::StandardLoader): loading /usr/local/Library/Formula/freetype.rb | |
==> Reinstalling freetype | |
/usr/local/Library/brew.rb (Formulary::StandardLoader): loading /usr/local/Library/Formula/libpng.rb | |
Warning: freetype-2.5.3_1 already installed | |
Homer: jason$ ln -s /usr/local/Cellar/freetype/2.5.2 /usr/local/Cellar/freetype/2.5.3_1 |
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
diff --git a/lisp/term/ns-win.el b/lisp/term/ns-win.el | |
index 447d7fd..27bba4a 100644 | |
--- a/lisp/term/ns-win.el | |
+++ b/lisp/term/ns-win.el | |
@@ -929,6 +929,11 @@ See the documentation of `create-fontset-from-fontset-spec' for the format.") | |
(add-to-list 'window-system-initialization-alist '(ns . ns-initialize-window-system)) | |
+(declare-function ns-toggle-fullscreen-internal "nsfns.m" ()) | |
+(defun ns-toggle-fullscreen () |
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
function check_gif($path) | |
{ | |
// Reads entire file into a string | |
$content = file_get_contents($path); | |
// Find GIF89a in a string | |
$bool = strpos($content, 'GIF89a'); | |
if($bool === FALSE) | |
{ | |
// Find NETSCAPE2.0 in a string | |
return strpos($content, chr(0x21).chr(0xff).chr(0x0b).'NETSCAPE2.0')===FALSE?0:1; |
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
;; emacs configuration | |
(push "/usr/local/bin" exec-path) | |
(add-to-list 'load-path "~/.emacs.d") | |
(setq make-backup-files nil) | |
(setq auto-save-default nil) | |
(setq-default tab-width 2) | |
(setq-default indent-tabs-mode nil) | |
(setq inhibit-startup-message t) |
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/sh | |
# | |
cmd=$(which tmux) | |
session=hjue | |
if [ -z $cmd ]; then | |
echo "You need to install tmux." | |
exit 1 | |
fi |
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
$ ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go/install)" | |
==> This script will install: | |
/usr/local/bin/brew | |
/usr/local/Library/... | |
/usr/local/share/man/man1/brew.1 | |
Press ENTER to continue or any other key to abort | |
==> /usr/bin/sudo /bin/mkdir /usr/local | |
WARNING: Improper use of the sudo command could lead to data loss |
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
;;; mainline.el --- modeline replacement forked from powerline.el | |
;; Author: Jason Milkins | |
;; Version: 1.0.2 | |
;; Keywords: statusline / modeline | |
;;; Changelog: | |
;; 1.0.1 : added additional xpm shape chamfer14, adjusted chamfer xpm. | |
;; : mainline-color1, mainline-color2, mainline-arrow-shape |
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
<?php | |
/** | |
* Yii, simple HMVC | |
*/ | |
class HmvcController extends Controller | |
{ | |
public function actionIndex() | |
{ | |
echo $this->execute('/hmvc/do/id/123'); | |
} |
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
// Scraping Made Easy with jQuery and SelectorGadget | |
// (http://blog.dtrejo.com/scraping-made-easy-with-jquery-and-selectorga) | |
// by David Trejo | |
// | |
// Install node.js and npm: | |
// http://joyeur.com/2010/12/10/installing-node-and-npm/ | |
// Then run | |
// npm install jsdom jquery http-agent | |
// node numresults.js | |
// |
OlderNewer