Skip to content

Instantly share code, notes, and snippets.

View VictorVelarde's full-sized avatar
🚀

Víctor Velarde VictorVelarde

🚀
View GitHub Profile
@VictorVelarde
VictorVelarde / gist:b2227b3ae8b88fb59fff73c5c46ea22f
Last active September 17, 2018 22:40
[GIT Config - LF] #git
# Para no aplicar CRLF automáticamente
git config --global core.autocrlf false
# y establecer globalmente LF (manteniendo compatibilidad con Linux)
git config --global core.eol lf
@VictorVelarde
VictorVelarde / start.sh
Created June 6, 2017 10:07
Servidor web en carpeta actual
python -m SimpleHTTPServer 9001 | google-chrome http://localhost:9001
@VictorVelarde
VictorVelarde / notes.md
Last active June 22, 2017 12:02
VS Code & React notes

Some notes on ReactJS &

REACTJS Basics

  • chrome extension: reactjs
  • create-react-app: npm install create-react-app | npm run start
  • material-ui
npm i --save react-tap-event-plugin
npm i --save material-ui
@VictorVelarde
VictorVelarde / create.sh
Last active June 27, 2017 09:03
react + leaflet + material Project
create-react-app my-app
cd my-app
# Leaflet
npm install --save leaflet
# Material-UI
npm install --save react-tap-event-plugin
npm install --save material-ui
@VictorVelarde
VictorVelarde / cloudSettings
Last active September 17, 2018 22:41
[vscode settings sync]
{"lastUpload":"2018-03-14T15:36:33.258Z","extensionVersion":"v2.9.0"}
@VictorVelarde
VictorVelarde / SearchFile.py
Last active July 19, 2017 12:38
Recursive search for files with pattern in a directory
# traverse root directory, and list directories as dirs and files as files
# adapted from 'https://stackoverflow.com/a/16974952/251834'
import os
import fnmatch
baseFolder = '.'
pattern = '*.csv'
for root, dirs, files in os.walk(baseFolder):
path = root.split(os.sep)
@VictorVelarde
VictorVelarde / updateCode.sh
Created July 19, 2017 16:08
Update VS Code in Ubuntu
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
sudo sh -c 'echo "deb [arch=amd64] http://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'
sudo apt-get update
sudo apt-get install code # or code-insiders
@VictorVelarde
VictorVelarde / create ppt with react
Created September 13, 2017 07:35
Create a deck with React (Spectable is similar to RevealJS)
create-react-app my-presentation --scripts-version spectacle-scripts
@VictorVelarde
VictorVelarde / SST.js
Created October 9, 2017 10:12
chroma SST palette
// -2 to 36ºC (every 2º Cel)
const colors = [
'#A201F0' /* -2 */,
'#2C08F0' /* 0 */,
'#0808C2',
'#082575',
'#086474',
'#0884A0',
'#08BABA' /* 10 */,
'#08E4EF',
@VictorVelarde
VictorVelarde / index.html
Last active October 12, 2017 09:11
Leaflet.CanvasLayer.Field issue #8 - weacast (ASCII Grid)
<!DOCTYPE html>
<html>
<head>
<title>Weacast ScalarField | Issue #8 with 1.3.3</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<link rel="stylesheet" href="//unpkg.com/[email protected]/dist/leaflet.css" />
<link href="https://fonts.googleapis.com/css?family=Roboto:100,400" rel="stylesheet">
<style>