Skip to content

Instantly share code, notes, and snippets.

@gholadr
gholadr / gist:10965166
Created April 17, 2014 08:37
cool tricks
#start a web server pointing to cwd
ruby -run -e httpd -- -p 5000 .
@gholadr
gholadr / my.js
Created July 15, 2014 04:49
MomentJS translation
// moment.js language configuration
// language : Burmese (mm)
// author : Squar team, mysquar.com
(function (factory) {
if (typeof define === 'function' && define.amd) {
define(['moment'], factory); // AMD
} else if (typeof exports === 'object') {
module.exports = factory(require('../moment')); // Node
} else {
@gholadr
gholadr / blah
Last active December 29, 2015 23:39
why isnt this working? I get a NoMethodError
class Foo < Fixnum
def initialize value
super value
end
def increment
self + 1
end
end
@gholadr
gholadr / gist:f0b02325274f0c5baf27eabd9a515ba2
Created July 8, 2016 12:31
rabbitmq-message-timestamp make error
david@rabbitmq-raiden-dev-node:~$ cd rabbitmq-message-timestamp/
david@rabbitmq-raiden-dev-node:~/rabbitmq-message-timestamp$ make
make[1]: Entering directory '/home/david/rabbitmq-message-timestamp/deps/rabbit_common'
make[2]: Entering directory '/home/david/rabbitmq-message-timestamp/deps/lager'
make[3]: Entering directory '/home/david/rabbitmq-message-timestamp/deps/goldrush'
make[3]: Leaving directory '/home/david/rabbitmq-message-timestamp/deps/goldrush'
make[2]: Leaving directory '/home/david/rabbitmq-message-timestamp/deps/lager'
DEPEND rabbit_common.d
ERLC app_utils.erl code_version.erl credit_flow.erl gen_server2.erl lager_forwarder_backend.erl mirrored_supervi
sor.erl mochijson2.erl pmon.erl priority_queue.erl rabbit_amqqueue.erl rabbit_auth_backend_dummy.erl rabbit_auth_ba
For this test, we ask the candidate to design a system architecture based on WebRTC to allow our chat app to make VOIP calls.
Conditions:
Ideally, the solution should be based on WebRTC
The solution should be based on a NodeJS stack
The solution should include APIs
If time allows, a simple web based demo to demonstrate solution
@gholadr
gholadr / js-example-french.js
Last active December 5, 2018 00:04
french version
$('#demo').daterangepicker({
"locale": {
"format": "MM/DD/YYYY",
"separator": " - ",
"applyLabel": "Appliquer",
"cancelLabel": "Annuler",
"fromLabel": "De",
"toLabel": "A",
"customRangeLabel": "Période personnalisée",
"weekLabel": "S",