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 twitter | |
import asyncio | |
import time | |
CONSUMER_KEY = '' | |
CONSUMER_SECRET = '' | |
ACCESS_TOKEN_KEY = '' | |
ACCESS_TOKEN_SECRET = '' | |
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 fs = require('fs'); | |
const DIRECTORY_COLOR = '\x1b[34m'; | |
const FILE_COLOR = '\x1b[32m'; | |
// ----------------------------------------------------------------------------- | |
// Formatting | |
// ----------------------------------------------------------------------------- | |
const buildPrefix = position => { |
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 orderItemListPromises = orderItemList.map(orderItems => { | |
return Promise.all( | |
orderItems.data.map(async orderItem => { | |
const filter = { where: { orderId: orderItem.order_id } }; | |
const dateString = orderItem.date + ""; | |
const stadistics = { | |
shopId: orderItem.shopId, | |
date: parseInt(dateString.slice(0, -3)), | |
itemName: orderItem.item_name, | |
amount: orderItem.total, |
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 orderItemListPromises = orderItemList.map(orderItems => | |
Promise.all( | |
orderItems.map(orderItem => { | |
let filter = { where: { orderId: orderItem.order_id } }; | |
myStadistic.shopId = orderItem.shopId; | |
listStatsToSave.push(myStadistic); | |
return axios.get( | |
url + |
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 axios = require("axios"); | |
const APP_ID = "b360564f62c547d1ac191557181610"; | |
function buildUrl(city) { | |
return `https://api.worldweatheronline.com/premium/v1/weather.ashx?key=${APP_ID}&q=${city}&format=json`; | |
} | |
function getCurrentConditions(response) { | |
return response.data.data["current_condition"]; |
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 solidity ^0.4.20; | |
import "./ERC721Basic.sol"; | |
import "./SafeMath.sol"; | |
import "./Ownable.sol"; | |
contract ColmenaToken is ERC721Basic, Ownable { | |
using SafeMath for uint256; | |
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 Bot = require('./lib/Bot'); | |
const SOFA = require('sofa-js'); | |
const Fiat = require('./lib/Fiat'); | |
// ----------------------------------------------------------------------------- | |
// Globals | |
// ----------------------------------------------------------------------------- | |
const bot = new Bot(); |
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 { Wallet, Chat, Identity } from './'; | |
import { RequestSigner } from './request-signer'; | |
import { MemorySignalStore } from './signal-account/stores/memory-signal-store'; | |
import { SignalAccount } from './signal-account'; | |
const chatUrl = 'https://chat.development.service.toshi.org'; | |
const identityUrl = 'https://identity.development.service.toshi.org'; | |
function createMessage(destinationRegistrationId: number, destination: string) { | |
return { |
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 solidity ^0.4.20; | |
import "./ERC20Basic.sol"; | |
contract BasicToken is ERC20Basic { | |
// Evento que se ejecuta cuando se realiza una compra. Se emite en el evento | |
// la dirección de quien ha comprado tokens y la cantidad. | |
event Buy(address buyer, uint256 amount); |
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
### Keybase proof | |
I hereby claim: | |
* I am bigomby on github. | |
* I am bigomby (https://keybase.io/bigomby) on keybase. | |
* I have a public key ASBFlH7pkEYz5R5T4n02Um1RhIMlpODw7WhoCmQ-8W6Tnwo | |
To claim this, I am signing this object: |
NewerOlder