http://www.gamesjobsjapan.com/
- Grasshopper
http://www.gamesjobsjapan.com/
| /** | |
| * Annoying.js - How to be an asshole to your users | |
| * | |
| * DO NOT EVER, EVER USE THIS. | |
| * | |
| * Copyright (c) 2011 Kilian Valkhof (kilianvalkhof.com) | |
| * Visit https://gist.github.com/767982 for more information and changelogs. | |
| * Visit http://kilianvalkhof.com/2011/javascript/annoying-js-how-to-be-an-asshole/ for the introduction and weblog | |
| * Check out https://gist.github.com/942745 if you want to annoy developer instead of visitors | |
| * |
| /* | |
| Template | |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/rxjs/2.3.22/rx.all.js"></script> | |
| <meta charset="utf-8"> | |
| <title>JS Bin</title> |
| module App { | |
| export class BaseController<T extends Entity> { | |
| // my services | |
| searchService: SearchService; | |
| saveService: SaveService; | |
| authService: AuthService; | |
| url: UrlService; | |
| // my variables | |
| searchRequest: SearchRequest; |
| // encode(decode) html text into html entity | |
| var decodeHtmlEntity = function(str) { | |
| return str.replace(/&#(\d+);/g, function(match, dec) { | |
| return String.fromCharCode(dec); | |
| }); | |
| }; | |
| var encodeHtmlEntity = function(str) { | |
| var buf = []; | |
| for (var i=str.length-1;i>=0;i--) { |
| // assumes you add a timestamp field to each record (see Firebase.ServerValue.TIMESTAMP) | |
| // pros: fast and done server-side (less bandwidth, faster response), simple | |
| // cons: a few bytes on each record for the timestamp | |
| var ref = new Firebase(...); | |
| ref.orderByChild('timestamp').startAt(Date.now()).on('child_added', function(snapshot) { | |
| console.log('new record', snap.key()); | |
| }); |
Microsoft’s navigator.msLaunchUri method only works in Internet Explorer on Windows 8. Therefore I came up with a (nearly) cross-browser implementation that uses the native msLaunchUri when it’s available and falls back to adventurous hacks when running in other browsers.
launchUri (uri, successCallback, noHandlerCallback, unknownCallback)
| var async = require('async'); | |
| var lame = require('lame'); | |
| var fs = require('fs'); | |
| var Speaker = require('speaker'); | |
| var volume = require("pcm-volume"); | |
| var audioOptions = { | |
| channels: 2, | |
| bitDepth: 16, | |
| sampleRate: 44100, |
| private dynamic SqlDataReaderToExpando(DbDataReader reader) | |
| { | |
| var expandoObject = new ExpandoObject() as IDictionary<string, object>; | |
| for (var i = 0; i < reader.FieldCount; i++) | |
| expandoObject.Add(reader.GetName(i), reader[i]); | |
| return expandoObject; | |
| } |
I have collected and moderated these ideas from various public sources and put into one place so that problem solvers and solution developers may find inspirations. Because I wish to update it regularly, I have setup as a single page wiki. You may try these ideas on hackathons/competitions/research; some are quite intense problems and some are not. Many of the problems were prepared keeping Dhaka/Bangladesh in mind, but of course can be applied to just about any underdeveloped/developing and sometimes developed countries.