- Node.js wrapper of freerdp
- Single-page web app with MEAN
- "TeamViewer" through VNC (i.e. node.js proxy for RFB protocol)
- Multiplayer game - Tanks
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
| /*! | |
| * Bowser - a browser detector | |
| * https://github.com/ded/bowser | |
| * MIT License | (c) Dustin Diaz 2013 | |
| */ | |
| !function (name, definition) { | |
| if (typeof define == 'function') define(definition) | |
| else if (typeof module != 'undefined' && module.exports) module.exports['browser'] = definition() | |
| else window[name] = definition() |
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
| var rooms = [ | |
| { | |
| "type": "Двустаен", | |
| "size": 100, | |
| "url": "http://www.homes.bg/ar130460", | |
| "phone": "0879354498", | |
| "location": "Ул./Бул. Тодор Александров", | |
| "price": 270 | |
| }, | |
| { |
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
| var getHostLocation = function() { | |
| if (getHostLocation.hostLocation === undefined) { | |
| var loc = window.location; | |
| getHostLocation.hostLocation = loc.protocol + "//" + loc.hostname + ((loc.port !== undefined) ? ':' + loc.port : ''); | |
| } | |
| return getHostLocation.hostLocation; | |
| }; |
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
| App.config = (function () { | |
| var CONFIG = { | |
| port: 8080, | |
| appname: 'foo', | |
| //... | |
| }; | |
| return { | |
| getProperty: function (prop) { | |
| prop = prop.toLowerCase(); | |
| return CONFIG[prop]; |
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
| var fib = function (_) { | |
| for (_=[+[],++[[]][+[]],+[],_],_[++[++[++[[]][+[]]][+[]]][+[]]]=(((_[++[++[++[[]][+[]]][+[]]][+[]]]-(++[[]][+[]]))&(((--[[]][+[]])>>>(++[[]][+[]]))))===(_[++[++[++[[]][+[]]][+[]]][+[]]]-(++[[]][+[]])))?(_[++[++[[]][+[]]][+[]]]=++[[]][+[]],_[++[++[++[[]][+[]]][+[]]][+[]]]-(++[[]][+[]])):+[];_[++[++[++[[]][+[]]][+[]]][+[]]]--;_[+[]]=(_[++[[]][+[]]]=_[++[++[[]][+[]]][+[]]]=_[+[]]+_[++[[]][+[]]])-_[+[]]); | |
| return _[++[++[[]][+[]]][+[]]]; | |
| } |
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 pullPrimitives(arr) { | |
| var map = {}, | |
| res = [], | |
| len = arr.length, | |
| args = arguments, | |
| current; | |
| for (var i = 1, argsLen = args.length; i < argsLen; i++) { | |
| map[args[i]] = true; | |
| } | |
| for (i = 0; i < len; i++) { |
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
| quickSort :: Ord a => [a] -> [a] | |
| quickSort [] = [] | |
| quickSort (x:xs) = quickSort left ++ [x] ++ quickSort right | |
| where | |
| left = [ y | y <- xs, y < x ] | |
| right = [ y | y <- xs, y >= x ] |
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
| sumProd :: [[Integer]]->Integer | |
| sumProd lst = sum (map product (filter (\x -> length ([y | y <- x, y < 0]) == 0) lst)) |
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
| #!/usr/bin/perl | |
| use warnings; | |
| use strict; | |
| use constant NUM_PER_DAY => 5; | |
| use constant TOTAL_TOPICS => 24; | |
| my @topics = (1..TOTAL_TOPICS); | |
| my ($rand, $temp); |