View anything-gist.el
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
;;; anything-gist.el --- anything-sources and some utilities for gist. | |
;; Filename: auto-complete-acr.el | |
;; Description: Anything extension for gist | |
;; Author: myuhe <yuhei.maeda_at_gmail.com> | |
;; Maintainer: myuhe | |
;; Copyright (C) 2009, 2010, myuhe , all rights reserved. | |
;; Created: 2009-04-13 | |
;; Version: 0.6 | |
;; Keywords: convenience, anything, git, gist |
View TemporalModel
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
import java.util.Date; | |
import javax.persistence.Column; | |
import javax.persistence.MappedSuperclass; | |
import javax.persistence.PrePersist; | |
import javax.persistence.PreUpdate; | |
import javax.persistence.Temporal; | |
import javax.persistence.TemporalType; | |
import play.db.jpa.Model; |
View tweetclass.py
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
#!/usr/bin/env python2.6 | |
# coding: utf-8 | |
import twitter | |
CONSUMER_KEY = '' | |
CONSUMER_SECRET = '' | |
ACCESS_TOKEN_KEY = '' | |
ACCESS_TOKEN_SECRET = '' |
View uninstall_homebrew.sh
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 | |
# Just copy and paste the lines below (all at once, it won't work line by line!) | |
# MAKE SURE YOU ARE HAPPY WITH WHAT IT DOES FIRST! THERE IS NO WARRANTY! | |
function abort { | |
echo "$1" | |
exit 1 | |
} | |
set -e |
View test.scala
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
package controllers { | |
import play._ | |
import play.mvc._ | |
object Scalate { | |
import java.io._ | |
import org.fusesource.scalate._ |
View jquery.placeholder.js
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 ($) { | |
$(function () { | |
if (!supportsInputAttribute('placeholder')) { | |
$('[placeholder]').each(function () { | |
var $this = $(this), | |
$form = $this.closest('form'), | |
placeholderText = $this.attr('placeholder'), | |
placeholderColor = 'GrayText', | |
defaultColor = $this.css('color'); |
View EXC_BAD_INSTRUCTION.m
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
dispatch_semaphore_t semaphore = dispatch_semaphore_create(1); | |
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ | |
sleep(1); | |
dispatch_semaphore_signal(semaphore); | |
sleep(1); | |
dispatch_semaphore_signal(semaphore); | |
sleep(1); | |
dispatch_semaphore_signal(semaphore); | |
}); |
View 15_javascript-config.el
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
;; インデントの関数の再設定 | |
(add-hook 'js2-mode-hook | |
#'(lambda () | |
(require 'js) | |
(setq js-indent-level 4 | |
js-expr-indent-offset 4 | |
indent-tabs-mode nil) | |
(set (make-local-variable 'indent-line-function) 'js-indent-line))) |
View init.el
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
(defface dired-todays-face '((t (:foreground "forest green"))) nil) | |
(defvar dired-todays-face 'dired-todays-face) | |
(defconst month-name-alist | |
'(("1" . "Jan") ("2" . "Feb") ("3" . "Mar") ("4" . "Apr") | |
("5" . "May") ("6" . "Jun") ("7" . "Jul") ("8" . "Aug") | |
("9" . "Sep") ("10" . "Oct") ("11" . "Nov") ("12" . "Dec"))) | |
(defun dired-today-search (arg) | |
"Fontlock search function for dired." |
View fullscreen-24.diff
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 157b2dd..f3807b7 100644 | |
--- a/lisp/term/ns-win.el | |
+++ b/lisp/term/ns-win.el | |
@@ -1263,6 +1263,11 @@ the operating system.") | |
(add-to-list 'window-system-initialization-alist '(ns . ns-initialize-window-system)) | |
+(declare-function ns-toggle-fullscreen-internal "nsfns.m" ()) | |
+(defun ns-toggle-fullscreen () |
OlderNewer