This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 -> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "taxi-white", | |
"commonName": "Taxi blanco", | |
"prices": [ | |
{ | |
"currency": "MXN", | |
"normal": 12, | |
"student": 10, | |
"schedule": "05:00 - 17:00" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
// only for ESP8266 | |
#define USE_WIFI_CONNECTION 0 | |
// for WIFI connection | |
#define WIFI_SSID "***" | |
#define WIFI_PASSWORD "***" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "asdf1234", | |
"inventory": [ | |
{ | |
"id": "i-asdf1", | |
"item": { | |
"id": "p-asdf1", | |
"type": "kit", | |
"name": "herida profunda", | |
"image": "https://img.purch.com/w/660/aHR0cDovL3d3dy5saXZlc2NpZW5jZS5jb20vaW1hZ2VzL2kvMDAwLzA5OS83MTYvb3JpZ2luYWwva29hbGFzLXdpdGgtY2hsYW15ZGlhLmpwZw==", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 = '' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
OlderNewer