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
| Namespace.extend = function(src, obj) { | |
| if (obj == null) { | |
| obj = {}; | |
| } | |
| var newObj; | |
| if (typeof obj.init === 'function') { | |
| newObj = obj.init; | |
| delete obj.init; | |
| } else { |
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
| Namespace.extend = (src, obj = {}) -> | |
| if typeof obj.init is 'function' | |
| newObj = obj.init | |
| delete obj.init | |
| else | |
| newObj = -> | |
| newObj.prototype = Object.create src.prototype | |
| newObj.prototype.constructor = newObj | |
| for prop of obj |
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
| Object.keys(Ao).forEach (prop) -> | |
| v = Ao[prop] #=> correct value | |
| p = Object.getOwnPropertyDescriptor(Ao, prop) #=> correct descriptor | |
| p.value = v #<- does FUCKING SHIT ALL | |
| console.log JSON.stringify p #=> returns descriptor ONLY | |
| props[prop] = p |
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
| diff --git a/Library/src/Makefile.am b/Library/src/Makefile.am | |
| index be1857d..5139eca 100644 | |
| --- a/Library/src/Makefile.am | |
| +++ b/Library/src/Makefile.am | |
| @@ -405,7 +405,6 @@ BUILT_SOURCES = \ | |
| HTAtom.h \ | |
| HTBInit.h \ | |
| HTBTree.h \ | |
| - HTBind.h \ | |
| HTBind.h \ |
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
| registerNewUser: -> | |
| @session.flush().then (models)=> | |
| newUser = @get('content') | |
| @transitionToRoute('user', newUser) | |
| , (response)-> | |
| console.log response |
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
| Support any/all compression formats for data.tar | |
| --- deb2targz | |
| +++ deb2targz | |
| @@ -47,10 +47,11 @@ | |
| ($header, $data) = ($data =~ /(.*?)\n(.*)/s); | |
| my($name, $num1, $num2, $num3, $num4, $len) = split /\s+/, $header; | |
| #print "header='$header'\n\tname='$name', len=$len\n"; | |
| - if ($name eq "data.tar.gz") { | |
| + if ($name =~ /^data\.tar(.*)$/) { | |
| # Found it |
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
| Total number of files: 16 | |
| Total number of lines: 1,411 | |
| Total number of commits: 291 | |
| +----------------------+-------+---------+-------+---------------------+ | |
| | name | loc | commits | files | percent | | |
| +----------------------+-------+---------+-------+---------------------+ | |
| | Félix Saparelli | 1,277 | 35 | 16 | 90.5 / 12.0 / 100.0 | | |
| | Tim-Smart | 42 | 13 | 3 | 3.0 / 4.5 / 18.8 | | |
| | rick | 24 | 31 | 2 | 1.7 / 10.7 / 12.5 | | |
| | Charlie McConnell | 14 | 65 | 3 | 1.0 / 22.3 / 18.8 | |
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
| function (a, b) { | |
| a = a || "aeioubcdfghjklmnpqrstvwxyz"; | |
| return this.replace(RegExp("([" + a + "])", "ig"), function (c,d,e) { | |
| e = c.toLowerCase(); | |
| d = (b || "iouaenpqrstvwxyzbcdfghjklm")[a.indexOf(e)]; | |
| return c==e ? d : d.toUpperCase(); | |
| }); | |
| } | |
| function(a,b){a=a||"aeioubcdfghjklmnpqrstvwxyz";return this.replace(RegExp("(["+a+"])","ig"),function(c,d,e){e=c.toLowerCase();d=(b||"iouaenpqrstvwxyzbcdfghjklm")[a.indexOf(e)];return c==e?d:d.toUpperCase();});} |