I hereby claim:
- I am infynyxx on github.
- I am infynyxx (https://keybase.io/infynyxx) on keybase.
- I have a public key whose fingerprint is 2412 890D 9A30 54A3 FC09 D548 46D5 20DF F3AF 4F92
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
-module(erl_tcp). | |
-export([start_server/0, connect/1, recv_loop/1]). | |
-define(LISTEN_PORT, 9000). | |
-define(TCP_OPTS, [binary, {packet, raw}, {nodelay, true}, {reuseaddr, true}, {active, once}]). | |
start_server() -> | |
case gen_tcp:listen(?LISTEN_PORT, ?TCP_OPTS) of | |
{ok, listen} -> spawn(?MODULE, connect, [listen]), | |
io:format("~p Server started.~n", [erlang:localtime()]); |
[core] | |
repositoryformatversion = 0 | |
filemode = true | |
bare = true | |
ignorecase = true | |
precomposeunicode = false | |
[remote "origin"] | |
fetch = +refs/*:refs/* | |
mirror = true | |
url = https://code.google.com/p/guava-libraries/ |
let proc_variable = 25i; | |
let p = proc() { | |
proc_variable * proc_variable; | |
}; | |
println!("proc value is {}", p()); //Outout: proc value is () |
{ | |
"logging" : { | |
"appenders" : [ { "type" : "console" } ], | |
"level" : "INFO", | |
"loggers" : { "io.dropwizard" : "INFO" } | |
}, | |
"server" : { | |
"adminConnectors" : [{ "type" : "http", "port" : 9001 }], | |
"applicationConnectors" : [{ "type" : "http", "port" : 9000 }] | |
}, |
<!DOCTYPE module PUBLIC | |
"-//Puppy Crawl//DTD Check Configuration 1.2//EN" | |
"http://www.puppycrawl.com/dtds/configuration_1_2.dtd"> | |
<module name="Checker"> | |
<module name="FileTabCharacter"/> | |
<module name="NewlineAtEndOfFile" /> | |
<!-- IDE-generated comment --> | |
<module name="RegexpSingleline"> | |
<property name="format" value="File \| Settings \| File Templates"/> | |
<property name="message" value="IDE-generated comment"/> |
function addGenerator(num) { | |
return function(toAdd) { | |
return num + toAdd; | |
} | |
} | |
var addFive = addGenerator(5); | |
console.log(addFive(4) == 9); |
<?php | |
abstract class MobileStreamsReqest { | |
private $_username; | |
private $_password; | |
private $_URI; | |
private $_version; | |
protected $parameters = array(); | |
protected $requestAttrbutes = array(); | |
protected $requestString; |
//Custom Event handling | |
Event.observe(document, 'dom:loaded', function() { | |
$('enableInputEvents').observe('click', function(e) { | |
document.fire('CheckBox:Enabled', {checked: $('enableInputEvents').checked}); | |
}); | |
}); | |
document.observe('CheckBox:Enabled', function(e) { | |
Event.stop(e); | |
if (e.memo.checked) { |
<?php | |
$lambda = function($time) { | |
echo "I am an anonymous function and being called {$times} times<br/>"; | |
}; | |
function nCallTo($n, Closure $function) { | |
for ($i = 0; $i < $n; $i++) { | |
$function($i+1); | |
} | |
return function() { |