Skip to content

Instantly share code, notes, and snippets.

View ftuyama's full-sized avatar

Felipe Tuyama ftuyama

View GitHub Profile
@ftuyama
ftuyama / ERC20.sol
Created September 9, 2019 01:18
TUY cryptotoken
pragma solidity ^0.5.10;
// File: openzeppelin-solidity/contracts/utils/Address.sol
/**
* @dev Collection of functions related to the address type,
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
@ftuyama
ftuyama / volume_alert.js
Created July 4, 2019 14:37
Binance Volume alert
// Access Volume Monitor: https://agile-cliffs-23967.herokuapp.com/binance
// Copy and past on chrome console:
var audio = new Audio("/static/beep.wav");
var audioCtx = new AudioContext();
var source = audioCtx.createMediaElementSource(audio);
// create a gain node
var gainNode = audioCtx.createGain();
header, video, img, svg, img ~ div, [data-asset-intro-image], h1, .tail-container {
display: none !important;
}
.app.two div, .app.two a {
color: rgba(255, 255, 255, 0) !important;
}
.message-out, .message-in, .highlight, #pane-side *, footer *, header ~ div, label, input {
color: black!important;
background-color: white !important;
}
@ftuyama
ftuyama / .sublime-snippet
Created June 10, 2017 20:57
binding.pry
<snippet>
<content><![CDATA[
import code; code.interact(local=dict(globals(), **locals()))
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>bind</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.python</scope>
</snippet>
@ftuyama
ftuyama / Bizuca.java
Last active August 29, 2015 14:20
Versão Final
package cs;
import javax.swing.*;
public class Bizuca extends JFrame {
public Bizuca ()
{
add(new Game());
setTitle("Bizuca V 2.0");
setDefaultCloseOperation(EXIT_ON_CLOSE);
@ftuyama
ftuyama / Arquivo.java
Created March 30, 2015 21:35
Hyperlink Manager V 1.3
package GUI;
import java.util.Formatter;
import java.util.NoSuchElementException;
import java.util.FormatterClosedException;
import java.io.FileNotFoundException;
import java.util.Scanner;
import javax.swing.*;
import java.io.File;
@ftuyama
ftuyama / Calculadora.java
Last active April 8, 2024 21:35
Calculadora em Java
package calculadora;
import java.io.*;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class Calculadora extends JFrame{
private JButton [] bOp = new JButton[4]; // Botões Operações
private JButton [] b = new JButton[10]; // Botões dos dígitos
private JButton bponto, bresult, blimpa, bexit; // Botão = e Quit