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
<?php defined('SYSPATH') or die('No direct script access.'); | |
/** | |
* Controller for Publicize. Currently only contains a redirect | |
* action. | |
* | |
* @package Publicize | |
* @category Helpers | |
* @author Luke Morton | |
* @copyright Luke Morton, 2011 | |
* @license MIT |
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
<?php defined('SYSPATH') or die('No direct script access.'); | |
class Kostache_Layout extends Kohana_Kostache_Layout { | |
public $app_id; | |
public $page_id; | |
public function charset() | |
{ |
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
<?php | |
class View_Account extends Kostache { | |
protected $_user = NULL; | |
protected $_user_view = NULL; | |
protected function _user() | |
{ |
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
location / { | |
try_files $uri /index.php?$query_string; | |
} | |
location = /index.php { | |
fastcgi_pass 127.0.0.1:9000; | |
fastcgi_index index.php; | |
include fastcgi_params; | |
} |
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
<?php | |
/** | |
* The directory in which your application specific resources are located. | |
* The application directory must contain the bootstrap.php file. | |
* | |
* @see http://kohanaframework.org/guide/about.install#application | |
*/ | |
$application = '../application'; |
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
window.BrowserDetect = { | |
init: function () { | |
this.browser = this.searchString(this.dataBrowser) || "An unknown browser"; | |
this.version = this.searchVersion(navigator.userAgent) | |
|| this.searchVersion(navigator.appVersion) | |
|| "an unknown version"; | |
this.OS = this.searchString(this.dataOS) || "an unknown OS"; | |
}, | |
searchString: function (data) { |
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
var spell = new Zamt('spellchecker.php', function (string) { | |
// Update when checked | |
$('textarea').val(string); | |
alert('Spell check completed.'); | |
}); | |
spell.check($('textarea').val(), function (suggestion) { | |
// Get array of suggested words |
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
// By using this.each you can now do something like this: | |
// $('img.apply-2x').retina(); | |
// And by returning this we can also method chain: | |
// $('img.apply-2x').retina().click(function () { alert('hello'); }); | |
$.fn.retina = function () { | |
if (window.devicePixelRatio === 2) { | |
// Run this function on every selected element | |
this.each(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
var exec = require('child_process').exec; | |
var fs = require("fs"); | |
var _ = require("./underscore")._; | |
var tools = require("./afs/tools"); | |
var p = require('path'); | |
var args = process.argv; | |
var options = { | |
"manifest" : "manifest.json", | |
"dist" : "dist", | |
"path" : ".", |
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> | |
<head> | |
<title>An example</title> | |
<meta charset="utf-8" /> | |
</head> | |
<body> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script> | |
<script src="orderlyqueue.js"></script> | |
<script> |