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
// create a dummy timeout | |
let id = window.setTimeout(() => {}, 0); | |
// count down ids from latest to remove them all | |
while (id--) { | |
window.clearTimeout(id); | |
} |
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
<style> | |
/* GraphiQL One Dark Alt (Dark Mode) theme by Ben Keating[1] | |
* Colors taken from Atom's One Dark theme[2]. Add this file to the end of | |
* your <head> block[3] to override built-in default styling. | |
* | |
* [1]. https://twitter.com/flowpoke | |
* [2]. https://github.com/atom/atom/tree/master/packages/one-dark-ui | |
* [3]. e.g. `.../site-packages/graphene_django/templates/graphene/graphiql.html` | |
*/ |
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
/************/ | |
/* Header */ | |
/************/ | |
header { | |
height: 80px; | |
} | |
.header-ba { |
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, {Fragment} from 'react'; | |
import {Button, View, Text} from 'react-native'; | |
import { useCapture } from "./useCapture"; | |
function App() { | |
const {captureViewRef, onSaveCapture} = useCapture(); | |
return ( | |
<Fragment> |
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, {Fragment, useState, useCallback, useRef, useEffect} from 'react'; | |
import {PermissionsAndroid, StyleSheet, Button, View, Text} from 'react-native'; | |
import {captureRef} from 'react-native-view-shot'; | |
import CameraRoll from '@react-native-community/cameraroll'; | |
function useCapture() { | |
const captureViewRef = useRef(null); | |
const [shouldAskForPermission, setShouldAskForPermission] = useState(false); | |
const [permissionGranted, setPermissionGranted] = useState(false); |
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
# run as: python microKey2FluidSynth.py | |
import os | |
import re | |
alsaOutputs = os.popen("aconnect -o").readlines() | |
def getKeyboardClientID(): | |
return getClientID("microKEY") # could be any other | |
def getFluidSynthClientID(): | |
return getClientID("FLUID Synth") |
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
/****************************************************** | |
* | |
* Crea (alertas de) stopLoss y takeProfit. | |
* | |
* Este código es un ejercicio. No me responsabilizo de que | |
* no funcione. Sos el único responsable si lo usas y pones | |
* tu dinero en juego. | |
* | |
* Este script solo funciona en la consola del navegador | |
* en cryptomkt.com |
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
(()=>{ | |
function init() { | |
createLimitsViewer(); | |
} | |
function update() { | |
const {stopLoss, takeProfit} = config.limits[base_name]; | |
$('#stop-loss-viewer').text('$'+stopLoss); |
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
/****************************************************** | |
* | |
* Expone metodos para crear stopLoss y takeProfit. | |
* | |
* Este script solo funciona en la consola del navegador | |
* en cryptomkt.com | |
* | |
*******************************************************/ | |
const cryptoapi = (()=>{ |
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
/****************************************************** | |
* | |
* Expone metodos para consultar balance y crear ordenes. | |
* | |
* Este script solo funciona en la consola del navegador | |
* en cryptomkt.com | |
* | |
* init: se ejecuta una sola vez | |
* update: se ejecuta cada x segundos | |
* |
NewerOlder