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
SC.ShowHelper = SC.View.extend | |
# We bind to either of these values... | |
if: true | |
unless: false | |
# ... to control visibility. | |
shouldDisplay: (-> | |
@get('if') and not @get('unless') | |
).property('if', 'unless') |
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
//= require_self | |
//= require sproutcore | |
//= require my_other_library | |
//= require_tree ./test | |
// Some trivial stubs that allow all the above to load gracefully without a browser. | |
document = {}; | |
jQuery = function(){return {ready: function(){}}}; |
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
require 'v8' | |
@ctxt = V8::Context.new | |
@ctxt.eval(Rails.application.assets.find_asset('test').to_s) |
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
// | |
// Jasmine Reporter for theubyracer on the console | |
// | |
// Originally adapted from https://github.com/mhevery/jasmine-node | |
// | |
// Helpers | |
// |
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
App.AgendaController = SC.Object.extend | |
month: (-> | |
if m = /agenda\/(\d+)/.exec(@get('subpath')) | |
Number(m[1]) | |
else | |
(new Date).getMonth() + 1 | |
).property('subpath').cacheable() | |
year: (-> | |
if m = /agenda\/\d+\/(\d+)/.exec(@get('subpath')) |
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
App.AgendaController = SC.Object.extend | |
month: (-> | |
if m = /agenda\/(\d+)/.exec(@get('subpath')) | |
Number(m[1]) | |
else | |
(new Date).getMonth() + 1 | |
).property('subpath').cacheable() | |
year: (-> | |
if m = /agenda\/\d+\/(\d+)/.exec(@get('subpath')) |
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/bash | |
# Adapted from Erik Johnson's script at | |
# http://terminalmage.net/2011/11/17/setting-a-usb-headset-as-the-default-pulseaudio-device/ | |
# | |
# Updated by Edward Faulkner <[email protected]> to move existing | |
# streams and eliminate the extra fork script. | |
# You'll need to change these to point at your headset device. | |
OUTPUT="alsa_output.usb-Generic_FREETALK_Everyman_0000000001-00-Everyman.analog-stereo" |
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
cd /var/lib/owncloud | |
tar -c /dev/null /dev/zero /dev/urandom /etc/timezone /etc/resolv.conf /etc/hosts /etc/localtime /usr/share/zoneinfo | tar x | |
mkdir -m 1733 -p ./var/lib/php5 | |
mkdir -m 1777 ./tmp |
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
[owncloud] | |
user = owncloud | |
listen = /var/run/php5-fpm-owncloud.sock | |
listen.owner = www-data | |
listen.group = www-data | |
listen.mode = 0600 | |
pm = dynamic | |
pm.max_children = 5 | |
pm.start_servers = 2 | |
pm.min_spare_servers = 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
server { | |
listen 80; | |
return 301 https://$server_name$request_uri; # enforce https | |
} | |
server { | |
listen 443 ssl; | |
ssl_certificate your_certificate_filename; | |
ssl_certificate_key your_certificate_key; |
OlderNewer