Skip to content

Instantly share code, notes, and snippets.

View akajumi's full-sized avatar

akaJumi akajumi

  • Adimedia Comunicación Interactiva
  • Irun, Gipuzkoa - Euskadi
View GitHub Profile
// time and time end
console.time("This");
let total = 0;
for (let j = 0; j < 10000; j++) {
total += j
}
console.log("Result", total);
console.timeEnd("This");
// Memory
@akajumi
akajumi / order-total.js
Created November 27, 2017 20:37 — forked from mpj/order-total.js
Code from Unit testing in JavaScript Part 3 - Test runners
function orderTotal(order) {
return order.items.reduce((prev, cur) => cur.price * (cur.quantity || 1) + prev, 0)
}
module.exports = orderTotal
# Set the default behavior, in case people don't have core.autocrlf set.
* text eol=lf
# Definitively text files
*.txt text
*.js text
*.jsx text
*.json text
*.svg text
{
"env": {
"browser": true,
"es6": true
},
"extends": "eslint:recommended",
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
{
// Coloque su configuración en este archivo para sobrescribir la configuración predeterminada.
"workbench.iconTheme": "vs-seti",
"workbench.colorTheme": "Atom One Light",
"atomKeymap.promptV3Features": true,
// ARCHIVO
// Carácter predeterminado de final de línea. Utilice \n para LF y \r\n para CRLF.
"files.eol": "\n",
// Si se habilita, se recortará el espacio final cuando se guarde un archivo.
{
// Utilizar IntelliSense para aprender acerca de los posibles atributos.
// Mantenga el puntero para ver las descripciones de los existentes atributos
// Para más información, visite: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
@akajumi
akajumi / Preferences.sublime-settings
Last active May 12, 2017 07:53
Sublime Text user settings
{
"color_scheme": "Packages/ayu/ayu-light.tmTheme",
"default_line_ending": "unix",
"detect_indentation": false,
"draw_white_space": "all",
"ensure_newline_at_eof_on_save": false,
"font_size": 12,
"ignored_packages":
[
"Vintage"
@akajumi
akajumi / lorem.sublime-project
Last active May 18, 2017 09:37
Sublime Text Project file
{
"folders":
[
{
"name": "LOREM IPSUM",
"path": "lorem_relative_path"
}
],
"settings":
{
@akajumi
akajumi / .hyper.js
Last active February 8, 2024 10:28
Hyper.js preferences file.
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 12,
// font family with optional fallbacks