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
import Ember from 'ember'; | |
const WEEK_DAY_NAMES = [ | |
'Sunday', 'Monday', | |
'Tuesday', 'Wednesday', | |
'Thursday', 'Friday', | |
'Saturday' | |
]; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', |
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
### Keybase proof | |
I hereby claim: | |
* I am rayners on github. | |
* I am rayners (https://keybase.io/rayners) on keybase. | |
* I have a public key whose fingerprint is AEE2 3479 C4B1 58EA 5965 6A36 8675 4798 6CB7 9288 | |
To claim this, I am signing this object: |
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 | |
/usr/local/bin/growlnotify -s -m "Drink water" -n "Water Reminder" |
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
;; my fancy frame title | |
;; "Emacs: <filename> [on <user>@<host>] [[ Working on <current-clocked-task> ]]" | |
(setq frame-title-format '("" invocation-name ": "(:eval (if (buffer-file-name) | |
(abbreviate-file-name (buffer-name)) | |
"%b")) | |
(:eval (if (tramp-tramp-file-p buffer-file-name) | |
(concat " on " (tramp-file-name-user (tramp-dissect-file-name (buffer-file-name))) "@" (tramp-file-name-host (tramp-dissect-file-name (buffer-file-name)))))) | |
" "(:eval (if (org-clock-is-active) (concat "[ Working: " org-clock-heading " ]"))))) |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title><$mt:blogname$></title> | |
</head> | |
<body> | |
<header> | |
<hgroup><h1><$mt:blogname$></h1></hgroup> | |
</header> |
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
<html> | |
<head> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> | |
<script type="text/javascript"> | |
function iity() { | |
var d = new Date(); | |
var c_hour = d.getHours(); | |
var value = 'Nope'; |
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
package PluginName::Plugin; | |
use strict; | |
use warnings; | |
use base qw( MT::Plugin ); | |
use MT::Util qw(dirify); | |
sub load_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
eval { require Some::Module; 1; }; | |
if ($@) { | |
# it didn't load | |
} | |
else { | |
# it did! | |
} |