Skip to content

Instantly share code, notes, and snippets.

View Inviz's full-sized avatar

Yaroslaff Fedin Inviz

View GitHub Profile
var DependencyManager = new Class({
Implements: [Chain],
initialize: function(doc) {
var constructor = this.using.bind(this)
this.manager = this
this.document = $pick(doc, document)
if (!DependencyManager.aliases) DependencyManager.aliases = {}
if (!DependencyManager.dependencies) DependencyManager.dependencies = {}
resources :tables do
match('/', :method => :options).to(:action => "LLLL")
end
OPTIONS /tables/ -> No routesm match the request
= pseudo-button
:cursor pointer
:text-decoration none
:white-space nowrap
= button(!path = false, !height = 34, !padding = 8, !offset = 4)
@if !path
+semi-liquid-background(!path, !height, !padding)
@if !offset > 0
> span > span
Params: {"person_profile"=>{"city"=>"Boston", "work_phone"=>"+1 234 567 890", "country"=>"Russia", "birthday"=>"February 26, 1978", "site"=>"www.example.com", "organization"=>"Orwik", "mobile_phone"=>"+1 234 567 891"}, "format"=>nil, "person"=>{"name"=>"Yaroslaff Fedin", "email"=>"invizko@gmail.com"}, "teaching"=>{"0"=>{"from"=>"12 dec, 2007", "university"=>"Harvard", "to"=>"Jan 2008"}, "1"=>{"from"=>"Whhwhwh", "university"=>"Lol", "to"=>"laflalfalfaf"}}, "action"=>"update", "_method"=>"put", "id"=>"2e55b704-7dc2-48c1-b10f-0d082dff9b6f", "controller"=>"people"}
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v2.0 20040830//EN" "http://dtd.nlm.nih.gov/publishing/2.0/journalpublishing.dtd">
<article article-type="research-article" dtd-version="2.0" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">
<front>
<journal-meta>
<journal-id journal-id-type="publisher">pbio</journal-id>
<journal-id journal-id-type="allenpress-id">plbi</journal-id>
<journal-id journal-id-type="nlm-ta">PLOS Biol</journal-id>
<journal-id journal-id-type="pmc">plosbiol</journal-id>
<journal-title>PLoS Biology</journal-title>
<issn pub-type="ppub">1544-9173</issn>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v2.0 20040830//EN" "http://dtd.nlm.nih.gov/publishing/2.0/journalpublishing.dtd">
<article article-type="research-article" dtd-version="2.0" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">
<front>
<journal-meta>
<journal-id journal-id-type="publisher">pbio</journal-id>
<journal-id journal-id-type="allenpress-id">plbi</journal-id>
<journal-id journal-id-type="nlm-ta">PLOS Biol</journal-id>
<journal-id journal-id-type="pmc">plosbiol</journal-id>
<journal-title>PLoS Biology</journal-title>
<issn pub-type="ppub">1544-9173</issn>
user www www;
worker_processes 1;
pid /opt/local/var/run/nginx.pid;
error_log /opt/local/var/log/nginx/error.log info;
events {
worker_connections 16;
}
Moobber = new Class({
options: {
server: 'soashable.com',
transport: {
clazz: Xmpp4Js.Transport.BOSH,
endpoint: "/http-bind/"
},
account: null
},
var PDFViewer = new Class({
Extends: Swiff,
options: {
path: "/flashes/pdfviewer.swf",
/*
Events:
onLoad: fires on swf load
onReady: viewer is ready and loaded first few pages (happens on startup)
onRequest: started loading something (e.g. starting a new page) (viewer is busy),