Skip to content

Instantly share code, notes, and snippets.

View DFOXpro's full-sized avatar
🎯
Focusing

Daniel Zorro DFOXpro

🎯
Focusing
  • Bogotá Colombia
View GitHub Profile
# 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 ->
/*
* Author: Daniel Zorro @DFOXpro
* Licence: WTF-PL
*/
var main = function(n){
var yo = 0;
while(yo < (n/2)){
if(n % yo++) return yo;
}
/*
* Author: Daniel Zorro @DFOXpro
* Licence: WTF-PL
*/
var main = function(n){
var yo = 0;
while(yo < (n/2)){
if((n/yo++)%1) return yo;
}
/*
* 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)];
@DFOXpro
DFOXpro / 2 challenge: Palindromes
Created December 6, 2014 19:01
BogotáJS Challenge
/*
* 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;
@DFOXpro
DFOXpro / js
Created December 6, 2014 18:46
test 1
/*
* Licence: WTF-PL
*/
var main = function(value){
var i;
var fib = [];
fib[0] = 0;
fib[1] = 1;