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
/* | |
* WARNING: Proof of concept. Do not use in production. No warranty. | |
* | |
* Safe transfer workaround for not fully ERC20 compatible tokens. | |
* Well, ERC20 had a lot of revision, who I am to say something is not compatible :) | |
* | |
* Read the following for more explanation: https://github.com/ethereum/solidity/issues/4116 | |
* | |
* In short: | |
* The final ERC20 standard (IIRC) requires the transfer function to return a boolean. Some tokens do not return anything |
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
//* Full credits and appreciation to The Rational Flibbr Indicators Creator | |
//* flibbr : flibbr.com : @flibbr | |
//* Consider tipping flibbr | |
study(title="The Rational Flibbr Indicator v2", shorttitle="The Rational Flibbr Indicator v2") | |
//Inputs | |
useCustomTick = input(false, title="Custom ticker? [Y/N]", confirm=true) | |
tickCustom = input(title="Symbol [e.g. BTCCNY:HUOBI]", type=string, defval="") |
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
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
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
// | |
// Talking to ultrasonic sensor HC-SR04 with an ATtiny84, and | |
// sending distance data using serial communications. | |
// | |
// electronut.in | |
// | |
#include <avr/io.h> | |
#include <string.h> | |
#include <util/delay.h> |
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
#!/usr/bin/env python | |
from scapy.all import * | |
ap_list = [] | |
def PacketHandler(pkt) : | |
if pkt.haslayer(Dot11) : | |
if pkt.type == 0 and pkt.subtype == 8 : |