This file contains 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 splitWordNumero(bar){ | |
var foo = bar; | |
//var foo = "The quick brown fox jumps over the lazy dog"; | |
var temp = []; | |
var res = []; | |
temp = foo.split(' '); | |
var j = temp.length; | |
console.log(j); |
This file contains 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 addOn = function(x){ | |
return x+1; | |
}; | |
var applyTest = function (f, x) { | |
return [x, (f(x)), (f(0))]; | |
}; | |
var y = applyTest(addOn, 1); |
This file contains 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 generate = function (f) { | |
var double = function(x) { | |
return x * 2; | |
}; | |
return [f, double]; | |
}; | |
var t = function() {return true;}; |
This file contains 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 l = +!+[]; | |
for(var i = +[];i <= !+[]+!+[]; i++){ | |
l = l+(+!+[]);console.log(l); | |
} |
This file contains 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 fg = function(s){ | |
var d = s+1; | |
return d; | |
}; | |
var callFunc = function (f) { | |
var i,arr; | |
arr = []; | |
for(i=0;i<1;i+1){ | |
arr.push(f(i)); |
This file contains 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
import requests | |
from bs4 import BeautifulSoup | |
GITHUB_EXPLORE_PAGE = 'https://github.com/explore' | |
def get_html_explore(): | |
response = requests.get(GITHUB_EXPLORE_PAGE) | |
return response.content |
This file contains 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
/* NEED TO PERFORMANCE TUNE */ | |
function anag(str){ | |
'use strict'; | |
if(typeof str !== 'string'){ | |
return ; | |
} | |
str = str.replace(/\s+/g, '').toLowerCase(); |
This file contains 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 arrayList(array, rootDom){ | |
var arrDom = []; | |
console.log(array) | |
var frag = document.createDocumentFragment(); | |
for (var i=0; i < array.length; i++){ | |
console.log(array[i]); | |
// arrDom.push('<p>'+array[i]+'</p>'); | |
var p = document.createElement("p"); | |
p.innerHTML = array[i]; | |
frag.appendChild(p); |
This file contains 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
Heart Animation |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer