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
| module Lolcommits | |
| class Hookz < Plugin | |
| def initialize(runner) | |
| super | |
| self.name = 'hookz' | |
| self.default = true | |
| end | |
| def run |
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
| exports.user = function (req, res) { | |
| User.findById(req.params.id, function (err, user) { | |
| if (err) { | |
| res.send(err); | |
| } else { | |
| Friend.findOne({ | |
| userId: req.signedCookies.userid | |
| }, function (err, user2) { | |
| console.log('hit1'); | |
| console.log(user2); |
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
| # Contributor: Leslie P. Polzer <[email protected]> | |
| # Contributor: bender02 at archlinux dot us | |
| # Contributor: Felix Saparelli <[email protected]> | |
| pkgname=mongoose | |
| pkgver=3.7 | |
| pkgrel=1 | |
| pkgdesc="Small and quick-to-use web server; https/php/cgi support" | |
| arch=('i686' 'x86_64') | |
| 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
| <script type="text/javascript" src="jquery.min.js"></script> | |
| <script type="text/javascript" src="script.js"></script> | |
| <style> | |
| nav#main a[data-current] { color: red; } | |
| </style> | |
| <nav id="main"> | |
| <a href="#!/">A</a> | |
| <a href="#!/derp">B</a> |
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
| String.prototype.enlolcrypt = function (cipher) { | |
| cipher = cipher || "aeoiubcdfghjklmnpqrstvwxyz"; | |
| return this.split("").map(function (T) { | |
| var c = /[A-Z]/.test(T), T = T.toLowerCase(), i = cipher.indexOf(T); | |
| if (/[^a-z]/.test(T)) { return T; } | |
| if ((new RegExp("["+cipher.substr(0,5)+"]")).test(T)) { | |
| T = cipher[(i+2)%5]; | |
| } else { | |
| T = cipher[(i+5)%21+5]; |
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
| String.prototype.enlolcrypt2 = function () { | |
| var cipher = "aeoiubcdfghjklmnpqrstvwxyz"; | |
| return this.split("").map(function (T) { | |
| var c = /[A-Z]/.test(T), T = T.toLowerCase(), i = cipher.indexOf(T); | |
| if (/[^a-z]/.test(T)) { return T; } | |
| if (/[aeoiu]/.test(T)) { | |
| T = cipher[(i+2)%5]; | |
| } else { | |
| T = cipher[(i+5)%21+5]; |
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
| { | |
| "info": { | |
| "title": "experiments", | |
| "author": "forresto", | |
| "description": "", | |
| "url": "various-timers-%2B-concat", | |
| "parents": [ | |
| "https://gist.github.com/3311840" | |
| ] | |
| }, |
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
| parseUri = (uri) -> | |
| result = {} | |
| a = document.createElement 'a' | |
| props = 'protocol hostname host pathname port search hash href'.split ' ' | |
| a.href = uri | |
| # Copy relevant properties | |
| result[prop] = a[prop] for prop in props | |
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
| // ==UserScript== | |
| // @name *[data-markdown] | |
| // @version 2.0 | |
| // @description Use Markdown, sometimes, in your HTML. | |
| // @author Paul Irish <http://paulirish.com/> and others | |
| // @include * | |
| // ==/UserScript== | |
| // Contribs: | |
| // Thaddee Tyl <http://espadrine.github.com/> |
NewerOlder