This file contains hidden or 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
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
This file contains hidden or 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
/* | |
* Author: Daniel Zorro @DFOXpro | |
* Licence: WTF-PL | |
*/ | |
var main = function(n){ | |
var yo = 0; | |
while(yo < (n/2)){ | |
if(n % yo++) return yo; | |
} |
This file contains hidden or 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
/* | |
* Author: Daniel Zorro @DFOXpro | |
* Licence: WTF-PL | |
*/ | |
var main = function(n){ | |
var yo = 0; | |
while(yo < (n/2)){ | |
if((n/yo++)%1) return yo; | |
} |
This file contains hidden or 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
/* | |
* Author: Daniel Zorro @DFOXpro | |
* Licence: WTF-PL | |
*/ | |
var main = function(value){ | |
var i = 0; | |
var r = ""; | |
while(i < value.length){ | |
r+= value[value.length - (1+i)]; |
This file contains hidden or 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
/* | |
* Licence: WTF-PL | |
*/ | |
var main = function(value){ | |
var i = 0; | |
value=value.replace(/ /g,"") | |
while(i < value.length){ | |
if(value[i]!=value[value.length-(1+i)]) | |
return false; |
This file contains hidden or 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
/* | |
* Licence: WTF-PL | |
*/ | |
var main = function(value){ | |
var i; | |
var fib = []; | |
fib[0] = 0; | |
fib[1] = 1; |