Skip to content

Instantly share code, notes, and snippets.

View jorgeas80's full-sized avatar
🎯
Focusing

Jorge Arévalo jorgeas80

🎯
Focusing
View GitHub Profile
@jorgeas80
jorgeas80 / SassMeister-input.scss
Created June 8, 2016 15:14
Generated by SassMeister.com.
// ----
// Sass (v3.4.21)
// Compass (v1.0.3)
// ----
div {
@jorgeas80
jorgeas80 / parser.py
Created July 5, 2016 21:07 — forked from JSONOrona/parser.py
Python command line argument example using argparse module
#!/usr/bin/python
''' Python command line argument example using argparse module
Example output:
./parser.py --server=pyserver --port=8080,443,25,22,21 --keyword=pyisgood
Server name: [ pyserver ]
@jorgeas80
jorgeas80 / http_request.py
Created July 8, 2016 11:03
Make HTTP call using requests library. Get a JSON route from Toledo to Madrid
import json, requests
import pprint
url = 'http://maps.googleapis.com/maps/api/directions/json'
params = dict(
origin='Toledo,Spain',
destination='Madrid,Spain',
sensor='false'
)
@jorgeas80
jorgeas80 / css-selectors.md
Last active July 10, 2016 21:14 — forked from magicznyleszek/css-selectors.md
CSS Selectors Cheatsheet

CSS Selectors Cheatsheet

Check w3schools for further information

Element selectors

Element -- selects all h2 elements on the page

h2 {
@jorgeas80
jorgeas80 / gist:3e077b917ef6dac3a9266e4633a591d8
Created July 11, 2016 01:53 — forked from robertcedwards/gist:fcec06dc0904a438c6a8
onmouseover html5 video play, mouseout pause
<html>
<head>
</head>
<body>
<div style="text-align:center" onmouseover="Play()" onmouseout="Pause()">
<video id="video1" width="480">
<source src="http://clips.vorwaerts-gmbh.de/VfE_html5.mp4" type="video/mp4" />
<source src="http://clips.vorwaerts-gmbh.de/VfE_html5.ogg" type="video/ogg" />
Your browser does not support HTML5 video.
</video>
@jorgeas80
jorgeas80 / simple-react-playground.html
Created July 23, 2016 16:09 — forked from voronianski/simple-react-playground.html
Quick React prototyping in browser on the fly with ES2015. Use this as boilerplate for your playground and upload html file on some server. Created as a solution for this challenge - http://blog.vjeux.com/2015/javascript/challenge-best-javascript-setup-for-quick-prototyping.html with the help of https://github.com/voronianski/babel-transform-in-…
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>React Quick Prototyping</title>
</head>
<body>
<div id="root"></div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.14.6/react.min.js"></script>
@jorgeas80
jorgeas80 / .gitignore_global
Last active September 17, 2016 08:25
Global ignore file for projects
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@jorgeas80
jorgeas80 / angularjs-providers-explained.md
Created October 2, 2016 14:14 — forked from demisx/angularjs-providers-explained.md
AngularJS Providers: Constant/Value/Service/Factory/Decorator/Provider
Provider Singleton Instantiable Configurable
Constant Yes No No
Value Yes No No
Service Yes No No
Factory Yes Yes No
Decorator Yes No? No
Provider Yes Yes Yes

Constant

@jorgeas80
jorgeas80 / typescript_miniworkshop.md
Last active October 2, 2016 23:22
Some interesting TypeScript features, regarding its use in Angular 2

var vs let vs const

The difference is scoping. var is scoped to the nearest function block and let is scoped to the nearest enclosing block (both are global if outside any block), which can be smaller than a function block.

function allyIlliterate() {
    //tuce is *not* visible out here

    for( let tuce = 0; tuce < 5; tuce++ ) {
 //tuce is only visible in here (and in the for() parentheses)
@jorgeas80
jorgeas80 / launch.json
Last active August 27, 2017 16:47
launch.json file for debugging angular-cli applications in vscode
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch Chrome against localhost, with sourcemaps",
"type": "chrome",
"request": "launch",
"url": "http://localhost:4200",
"sourceMaps": true,
"webRoot": "${workspaceRoot}",