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
$ git push origin master | |
>> To [email protected]:Miksago/Jet.js.git | |
>> ! [rejected] master -> master (non-fast forward) | |
>> error: failed to push some refs to '[email protected]:Miksago/Jet.js.git' |
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
----------------------------------------------------------------------------------------------------------------- | |
Property / Method | Access | Type | Arguments | Returns | |
------------------------------------------------------------------------------------------------------------------ | |
Jet | |
_uri private | |
base Function() String | |
loaded Function() Array | |
resolve Function Namespace String | |
_namespaces private Object Object |
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
map.namespace :admin do |admin| | |
admin.resources :articles, :pages, :settings | |
admin.root :controller => "dashboard" | |
end | |
map.connect 'articles/', :controller => 'Site::Articles', :action => 'index' | |
map.connect 'articles/:slug', :controller => 'Site::Articles', :action => 'view' | |
map.connect ':slug', :controller => 'Site::Pages', :action => 'view' |
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
----------------- | |
onreadystatechange : null | |
onload : null | |
GetWeakReference : GetWeakReference() | |
addEventListener : addEventListener() | |
setAttribute : setAttribute() | |
innerHTML : | |
parentNode : <head> | |
src : http://labjs.com/load2.js | |
ownerDocument : Document labjs.com |
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
desc "Starts the thin web server through rackup." | |
task :serve do | |
%x[rackup -p 9292 -s thin] | |
end |
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 | |
echo "" | |
user="REMOTE_USER" | |
domain="REMOTE_DOMAIN" | |
mount_path="/YOUR/REMOTE/PATH" | |
local_path="YOUR/LOCAL/PATH" | |
if [ -d $local_path ]; 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
jet.monitor = function(ns){ | |
var parts = ns.split("."), | |
m = parts.pop(); | |
fn = jet.namespace(parts.join("."))[m]; | |
return function(){ | |
console.log(ns+"("+Array.prototype.join.call(arguments, ", ")+")"); | |
return fn.apply(jet.global, 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
jet.namespace = function(/*String*/ namespace, /*Object?*/ properties){ | |
// summary: | |
// Creates & Resolves an objects structure based on the given Namespace string. | |
// namespace: | |
// A string representing an object tree, each level separated by a period. | |
// example: | |
// | jet.namespace("a.b.c"); | |
// | #=> a = {}; a.b={}; a.b.c={}; | |
// example: |
OlderNewer