Skip to content

Instantly share code, notes, and snippets.

View vasco3's full-sized avatar

Gorka Cesium vasco3

View GitHub Profile
@vasco3
vasco3 / google-input.css
Created October 25, 2015 22:44
google-input.css
.container {
display: block;
max-width: 600px;
position: relative;
height: 36px;
box-sizing: border-box;
border: 1px solid gray;
border-radius: 3px;
background-color: white;
}
<div class="container">
<input type="text" value="" class="free-typing"></input>
<input autocomplete="off" value="Oracul, tell me" class="persistent-placeholder"/>
</div>
"scripts": {
"clean": "rm -rf build && mkdir build",
"build-css": "node-sass scss/app.scss public/css/app.css",
"build-server": "babel -d ./build ./server -s",
"build": "npm run clean && npm run build-css && npm run build-server",
"lint": "eslint source/ --quiet",
"start": "node ./build/index.js",
"debug": "node --debug ./build/index.js",
"test": "for i in $(ls tests/); do babel-node \"./tests/${i}\" | faucet ; done",
"validate": "npm run lint; npm run test && npm outdated --depth 0"
@vasco3
vasco3 / babel-node.json
Created October 4, 2015 01:10
babel-node guide
"scripts": {
"start": "npm run check && babel-node app/server.js",
},
@vasco3
vasco3 / algorithms-notes.markdown
Last active September 24, 2015 03:29
Algorithm notes

Algorithms notes

Use Asymptotic Analysis to compare the eficiency of algorithms

Famous algorithm experts

  • Thomas Cormen
  • Devin Balkom
@vasco3
vasco3 / sqrt.js
Last active September 7, 2015 14:20
Square root with recursion
function sqrt(original, rootn) {
if (rootn < 1) return;
rootn = rootn || (original - 1);
var isSqRoot = (rootn * rootn) === original;
while (isSqRoot === false) {
return sqrt(original, rootn - 1);
}
@vasco3
vasco3 / LICENSE
Last active August 29, 2015 14:26 — forked from ourmaninamsterdam/LICENSE
Arrayzing - The JavaScript array cheatsheet
The MIT License (MIT)
Copyright (c) 2015 Justin Perry
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
@vasco3
vasco3 / monads.markdown
Last active August 29, 2015 14:25
Monads

Monads

Macroids

function MONAD () {
  return function unit(value) {
 var monad = Object.create(null);