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
<% if @note %> | |
<form action="/<%= @note.id %>" method="post" id="edit"> | |
<input type="hidden" name="_method" value="put"> | |
<textarea name="content"><%=h @note.content %></textarea> | |
<input type="checkbox" name="complete" <%= "checked" if @note.complete %>> | |
<input type="submit"> | |
</form> | |
<p><a href="/<%= @note.id %>/delete">Delete</a></p> | |
<% else %> | |
<p>Note not found.</p> |
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
Handlebars.registerHelper('if_task_active', function(options) { | |
var state = this.model.state_id; | |
if (state == 300) { | |
return options.fn(this); | |
} | |
return options.inverse(this); | |
}); |
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
Handlebars.registerHelper('if_task_state', function(options) { | |
var states = options.hash.is.split(',') | |
, r = false | |
; | |
_.each(states, function(state) { | |
if (state == this.model.state) | |
r = true; | |
}, this); |
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 | |
public static function __callStatic($method, $arguments) | |
{ | |
return call_user_func_array(array(self::$_instance, $method), $arguments); | |
} |
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>Simple Styled Radio Inputs · CodePen</title> | |
<!-- | |
Copyright (c) 2012 Dan Harper, http://codepen.io/danharper | |
Permission is hereby granted, free of charge, to any person obtaining |
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 unblockuson() { | |
sudo networksetup -setdnsservers "Wi-Fi" 208.122.23.22 208.122.23.23 | |
sudo networksetup -setairportpower "en1" "off" | |
sudo networksetup -setairportpower "en1" "on" | |
echo "Unblock-Us: ENABLED" | |
} | |
function unblockusoff() { | |
sudo networksetup -setdnsservers "Wi-Fi" "empty" | |
sudo networksetup -setairportpower "en1" "off" |
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
@page { | |
margin: .312in .312in .322in; | |
} | |
@media print { | |
html { | |
margin: 0 .1in; | |
} | |
} |
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 | |
class ApiJobsController extends BaseController | |
{ | |
public function index() | |
{ | |
throw new NotImplemented; | |
} | |
public function show($id) |
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
javascript:(function(){function c(){var e=document.createElement("link");e.setAttribute("type","text/css");e.setAttribute("rel","stylesheet");e.setAttribute("href",f);e.setAttribute("class",l);document.body.appendChild(e)}function h(){var e=document.getElementsByClassName(l);for(var t=0;t<e.length;t++){document.body.removeChild(e[t])}}function p(){var e=document.createElement("div");e.setAttribute("class",a);document.body.appendChild(e);setTimeout(function(){document.body.removeChild(e)},100)}function d(e){return{height:e.offsetHeight,width:e.offsetWidth}}function v(i){var s=d(i);return s.height>e&&s.height<n&&s.width>t&&s.width<r}function m(e){var t=e;var n=0;while(!!t){n+=t.offsetTop;t=t.offsetParent}return n}function g(){var e=document.documentElement;if(!!window.innerWidth){return window.innerHeight}else if(e&&!isNaN(e.clientHeight)){return e.clientHeight}return 0}function y(){if(window.pageYOffset){return window.pageYOffset}return Math.max(document.documentElement.scrollTop,document.body.scrollTop)}funct |
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
NameVirtualHost *:80 | |
# Dynamic Virtual Host | |
<VirtualHost *:80> | |
UseCanonicalName off | |
VirtualDocumentRoot "/Library/WebServer/Sites/%1" | |
<Directory "/Library/WebServer/Sites/%1" > | |
AllowOverride All | |
</Directory> |
OlderNewer