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 Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'VisitDays' | |
}); |
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
_hadsuccess() { | |
if [ $? -eq 0 ]; then | |
echo '2'; | |
else | |
echo '1'; | |
fi | |
} | |
_gitbranch() { | |
if [ -d .git ]; then |
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
golden_ratio_conjugate = 0.618033988749895; | |
var desktop = LL.getCurrentDesktop(); | |
var hue = desktop.getTag("hue"); | |
if (!hue) { hue = Math.random(); } | |
else { hue = parseFloat(hue); } | |
hue += golden_ratio_conjugate; | |
hue %= 1; | |
desktop.setTag("hue", hue.toString()); |
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/bash | |
__script_version="1.1" | |
#----------------------------------------------------------------------- | |
# Default values | |
#----------------------------------------------------------------------- | |
human_time="6:20 tomorrow" |
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/bash | |
cmd='luarocks-5.1' | |
all=`$cmd search --all` | |
rocks=`$cmd list | grep '^\w\S*$'` | |
IFS=$'\n' | |
for rock in $rocks | |
do | |
local_version=`$cmd list $rock | grep -A1 "^${rock}$" | grep -oE '^[\t ]+.+\-[0-9]+ '` | |
remote_version=`echo "$all" | grep -A1 "^${rock}$" | grep -oE '^[\t ]+.+\-[0-9]+ '` | |
if [ "$local_version" != "$remote_version" ] |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
<script> | |
function celsiusToFahrenheit(celsius) { | |
var fahrenheit = celsius * 9 / 5 + 32; | |
if ( ! celsius | isNaN(fahrenheit)) { | |
return ""; |
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
/* Works only for an odd number of pages, with the | |
* 'home' page centered. | |
* Requires snap to pages and an extra blank page | |
* on either side. | |
* @pages number of pages on either side of 'home'. | |
*/ | |
var e = LL.getEvent(); | |
var c = LL.getContainer(); | |
var pos = c.getPositionX(); | |
var width = c.getWidth(); |