Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Emmanuel Orozco indie-rok

🏠
Working from home
View GitHub Profile
View react-native-cheatsheet.txt
React Native Cheatsheet
+------------------------------+-----------------------------------------+--------------------------------------------------+
| | React | React Native |
+------------------------------+-----------------------------------------+--------------------------------------------------+
| CSS | inline + css | just inline |
+------------------------------+-----------------------------------------+--------------------------------------------------+
| HTML Containers | <div>,<section>, etc | <View/> |
+------------------------------+-----------------------------------------+--------------------------------------------------+
| HTML Text | <p>,<h1>,etc | <Text/> + style
View solve.js
module.exports = function solve(maze, miner, exit) {
let directionsArray = ["up", "right", "down", "left"];
const movements = {
left: { x: -1, y: 0 },
right: { x: 1, y: 0 },
up: { x: 0, y: -1 },
down: { x: 0, y: 1 }
};
const xNum = maze.length;
@indie-rok
indie-rok / index.txt
Created Jan 8, 2019 — forked from EQuimper/index.txt
clear expo cache
View index.txt
rm -fr ~/.expo/starter-app-cache
@indie-rok
indie-rok / git_branch_naming.md
Last active Jul 12, 2018 — forked from revett/git_branch_naming.md
Git Branch Naming Conventions
View git_branch_naming.md

<type>/<jira-ticket-id>

--

<type>

Should go in lowercase

bug    - Code changes linked to a known issue.
feature   - New feature.
hotfix - Quick fixes to the codebase.
junk   - Experiments (will never be merged).
View firebase.html
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='UTF-8'/>
<meta name='viewport' content='width=device-width, initial-scale=1.0'/>
<meta http-equiv='X-UA-Compatible' content='ie=edge'/>
<title>Document</title>
</head>
<body>
<h1>aqui va la logica de fb</h1>
View app.js
// como publicar foto
// if(!window.FileReader){
// return;
// }
function readFile(){
if(this.files && this.files[0]){
var newImages = new FileReader();
newImages.addEventListener("load", paintImage);
newImages.readAsDataURL(this.files[0]);
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Titulo</title>
<link rel='stylesheet' href='estilos.css'/>
<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css'/>
</head>
<body>
<section class="container">
View dragAndDrop.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Drag</title>
<style>
.destiny{
width: 130px;
height: 130px;
border: 1px solid black;
View Pokedex.js
function Pokemon(nombre,color,puntosAtaque){
this.nombre = nombre;
this.color = color;
this.nivelDeAmistad = 0;
this.vida = 100;
this.puntosAtaque = puntosAtaque;
this.saludar = function(){
console.log("Hola, me llamo " + this.nombre)
};
View loader.js
$.getScript("//code.createjs.com/createjs-2015.11.26.min.js", function() {
var nuevaVariable = 0;
var lib = {};
function(lib = {}, img = {}, cjs = {}, ss = {}) {
var p; // shortcut to reference prototypes
lib.webFontTxtFilters = {};
// library properties: