Skip to content

Instantly share code, notes, and snippets.

View angelorubin's full-sized avatar

Ângelo Rogério Rubin angelorubin

View GitHub Profile
varmerge2dArrayIntoOne2 = function(arrays) {
return arrays.reduce( function(p,n){
return p.concat(n);
});
};
function merge2dArrayIntoOne(arrays) {
var count = arrays.length;
var merged = new Array(count);
var c = 0;
for (var i = 0; i < count; ++i) {
for (var j = 0, jlen = arrays[i].length; j < jlen; ++j) {
merged[c++] = arrays[i][j];
}
}
return merged
var obj = {
myFunc6 : function myFunc6() {}
};
console.log(obj.myFunc6); // function myFunc6() {}
function myFunc4 () {
return function myFunc5 () {}
}
console.log(myFunc4()); // function myFunc5 () {}
function myFunc1 () {
};
function myFunc2 (myFunc1) {
console.log(myFunc1);
};
myFunc2(myFunc1); // function myFunc1() {}
var myVar = function myFunc () {
};
console.log(myVar); // function myFunc() {}
{
"username": "myusername",
"created_at": "2013-01-01 15:30:27",
"public_id": "aaabbbccc112233",
"reputation": 42,
"hourly_quota": 42,
"backlog": 42,
"stats": {
"today": {
"sent": 42,
@angelorubin
angelorubin / ano-escolaridade.json
Last active April 2, 2016 15:33
ano-escolaridade
{ 'id':'1' }
<select ng-change="getSelectedItem(selectedItem)" ng-model="selectedItem" ng-options="item.acronyms for item in states"></select>
h1,h2,h3,h4,h5,h6 {
font-family: 'Verdana';
color: red;
}