Skip to content

Instantly share code, notes, and snippets.

View ricexen's full-sized avatar

Christian Camacho ricexen

View GitHub Profile
@ricexen
ricexen / init.coffe
Last active January 30, 2018 17:56
Atom json configuration for UT
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
#include "Arduino.h"
char *opciones[] = {
"Decirle a sus padres la verdad: Quiero ir a la playa con mis amigos, va estar bien chido.",
"Mantener todo en secreto y avisarles el último día",
"Salir sin avisar",
"Decir que te prepararon una salida por tu cumpleaños",
"Decir que es el último fin de semana de vaciones",
"Reportar que estas en una playa de Ensenada ya que estemos armando la casa de campaña",
"Decirles la verdad: Papás mis amigos y yo hemos estado planeado una salida para vacaciones y pues será este viernes peroooo, acamparemos 😕 me dejarian ir? Parillo. Si la dudan decir: ni por mi cumple"
{
"name": "taxi-white",
"commonName": "Taxi blanco",
"prices": [
{
"currency": "MXN",
"normal": 12,
"student": 10,
"schedule": "05:00 - 17:00"
},
#pragma once
// only for ESP8266
#define USE_WIFI_CONNECTION 0
// for WIFI connection
#define WIFI_SSID "***"
#define WIFI_PASSWORD "***"
{
"id": "asdf1234",
"inventory": [
{
"id": "i-asdf1",
"item": {
"id": "p-asdf1",
"type": "kit",
"name": "herida profunda",
"image": "https://img.purch.com/w/660/aHR0cDovL3d3dy5saXZlc2NpZW5jZS5jb20vaW1hZ2VzL2kvMDAwLzA5OS83MTYvb3JpZ2luYWwva29hbGFzLXdpdGgtY2hsYW15ZGlhLmpwZw==",
alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
crypted_message = "KLZWSHGHTPLUAV"
def cesar_alphabet(alphabet, positions):
if(positions >= len(alphabet)):
return alphabet
else:
return alphabet[positions:] + alphabet[:positions]
def decrypt(crypted_message, alphabet, crypted_alphabet):
message = ''
import React from 'react';
import { View, Picker, StyleSheet } from 'react-native';
import PropTypes from 'prop-types';
const PickerExample = ({elements}) => (
<View>
<Picker
mode={Platform.OS === 'ios' ? 'dialog' : 'dropdown'}
style={styles.picker}
selectedValue={this.state.quantityType}
onValueChange={this.changeType}
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
export const createContainer = (props, actions, component) => {
props = !Array.isArray(props) ? [props] : props;
const mapStateToProps = state => {
let states = {};
for (let i = 0; i < props.length; i++) {
const prop = props[i];
if (state[prop]) {
const jwt = require('jsonwebtoken');
const authorization = require('./authorization');
const { session: { secret } } = require('../config');
const sign = (payload) => {
return jwt.sign(payload, secret);
}
const decodeToken = (token) => {
return jwt.verify(token, secret);