Skip to content

Instantly share code, notes, and snippets.

View krusty's full-sized avatar

Lucas Sallovitz krusty

View GitHub Profile
require "set"
textoA = "tzpxrf cwmgwbc cljbfcv pnjm rsbmr cpb hrjcn fmh pflzbz vwc qhcv pnd hczrzt gnjspfq rtt zpf qfwkxbns gtptwhx rqz plpxpkbn vrrhgtjt tgzqrjj vdrtkpz nvwtkxvt jsjdskjn lbmjxz fcxtp kkxlvqfr vwjphbkq vbfg qqpgrhv pgp thznzbr tzvn vfj ncnm ldskgrx flspwl wckpkmf dzfblw mlbqwhzg xsjmzvc xpvjlqh hkhj jpfjpf hbdbz lzqf mvtgqrm fzdkwc vgvsr qnjzkhwh qqkwzf mzjtzpht cktktjg dgn jchtqgnm wmj tpwsj dhtgccb jddsf xnw tpfw tsnz nmnmf wrwfp vjtbs dqj hzq dqwlq sqqljxrc svn nwhprq rblvzsgb jzrhl dprfdkz kljggw dxtblzvj cgcgk fzzdvr dtktndk cxc hnk dmk hllhqll sthhs bzfsk dqsnmlr vqcmd mhgfxqt csmhwz jctbnczb zvdg mkvsvrd hcq tqsbbdkf cmwt kljmb mdw srn swzgf dvz tnl dnwnx phtq thvwdm xqkhpjns djlfdjft nvhgw fvj lhdz bsms ftk ldh ssj wzswdb kbdmt wgzgqtk fngw bgshmpp hvft xjwpp srn mfdtb hwn rgjtt jcvgzttt dgbnlsdh ljvgnr vffgwnb pgwjsfqx pckkhv mlbnrb gmsht rtvzvpbw bdcw nkvdjlrr gqch gbx ntglgqb fdhx tlz xvgdpg gswz tkdvw fscts kzmkmqd dsbhdfmx hpz jjbwvch nrkj nvw npxtpt jckdkgsw lvdwns sbvj nkrdqqk
{
// Settings
"passfail" : false, // Stop on first error.
"maxerr" : 100, // Maximum errors before stopping.
// Predefined globals whom JSHint will ignore.
"browser" : true, // Standard browser globals e.g. `window`, `document`.
"node" : false,
" Disable vi compatibility
set nocompatible
" Use Pathogen to load bundles
call pathogen#runtime_append_all_bundles()
call pathogen#helptags()
filetype on
filetype plugin indent on
@krusty
krusty / cc.xsd
Created December 7, 2011 21:37
schemas
<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="CustomerCentral"
targetNamespace="http://www.intuit.com/CustomerCentral"
elementFormDefault="unqualified"
xmlns:tns="http://www.intuit.com/CustomerCentral"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="CCWSRequest">
<xs:complexType>
<xs:sequence>
{
// Settings
"passfail" : false, // Stop on first error.
"maxerr" : 100, // Maximum errors before stopping.
// Predefined globals whom JSHint will ignore.
"browser" : true, // Standard browser globals e.g. `window`, `document`.
"node" : false,
{
// Settings
"passfail" : false, // Stop on first error.
"maxerr" : 100, // Maximum errors before stopping.
// Predefined globals whom JSHint will ignore.
"browser" : true, // Standard browser globals e.g. `window`, `document`.
"node" : false,
{
// Settings
"passfail" : false, // Stop on first error.
"maxerr" : 100, // Maximum errors before stopping.
// Predefined globals whom JSHint will ignore.
"browser" : true, // Standard browser globals e.g. `window`, `document`.
"node" : false,
*Gist.vim* Vimscript for creating gists (http://gist.github.com)
Usage |gist-vim-usage|
Tips |gist-vim-tips|
Requirements |gist-vim-requirements|
License |gist-vim-license|
Install |gist-vim-install|
This is a vimscript for creating gists (http://gist.github.com)
@krusty
krusty / gist:1978331
Created March 5, 2012 13:36
chat about events
[09:37:44] <krusty_ar> so, where do you mostly hook up your events? right now in my project they end up in the views initialize methods, but I'm thinking of puting it outside any backbone class (I'm not using routes yet), is there any other pattern?
[09:38:17] <-- Cromulent (~Cromulent@cpc18-reig4-2-0-cust124.6-3.cable.virginmedia.com) has quit (Remote host closed the connection)
[09:38:32] <krusty_ar> it seems even if events do a nice decoupling, putting the .on call in one of the classes seems like introducing a dependency
[09:39:45] <-- shesek (~shesek@89-138-48-68.bb.netvision.net.il) has quit (Ping timeout: 248 seconds)
[09:40:40] <efdee> why would you not put them in your views initialize methods?
[09:40:47] <efdee> (assuming that your handlers are methods of your view)
[09:41:13] --> shesek (~shesek@CBL217-132-93-135.bb.netvision.net.il) has joined #documentcloud
[09:41:22] <efdee> yes, your view depends on your model (or event bus). but there's nothing wrong with that.
[09:41:30] <krusty_ar> efdee: ma
span.stars {
float: left;
height: 0;
width: 100px;
overflow: hidden;
padding: 20px 0 0 0;
background: url("/static/images/rating_stars.png") no-repeat;
background-color: green;
border: 1px solid white;
}