Skip to content

Instantly share code, notes, and snippets.

View lucasdaiki's full-sized avatar
🇧🇷
SOY LOCO POR TI PARMERA

Lucas Daiki lucasdaiki

🇧🇷
SOY LOCO POR TI PARMERA
  • Remessa Online
  • São Paulo
View GitHub Profile
@agutoli
agutoli / react-cli.py
Last active July 20, 2016 22:40
Command Line to create react components
#!/usr/bin/env python
import os
import sys
import re
firstLower = lambda s: s[:1].lower() + s[1:] if s else ''
STYLE_EXT = '.scss'
@martinaglv
martinaglv / 01.js
Last active July 25, 2024 03:38
What do these functions do?
function whatDoesItDo(val){
return val ? 1 : 2;
}
@SteveBate
SteveBate / ArrayExercise.js
Created October 9, 2013 13:36
Exercise testing the various Javascript Array methods but particularly the functional methods available
// set up arrays
var numbers = [1,12,4,18,9,7,11,3,101,5,6];
var strings = ['this','is','a','collection','of','words'];
// array.reduce - find largest number
var largestValue = numbers.reduce(function(x,y){ return x > y ? x : y });
console.log('largest number: ' + largestValue);
// array.reduce - find longest string