Skip to content

Instantly share code, notes, and snippets.

View nfl0's full-sized avatar
😋

nfl0

😋
View GitHub Profile
@nfl0
nfl0 / ethglobal_tv.txt
Last active April 30, 2021 17:00
ethglobal.tv chat name's annimation + poap notification
//set interval
var tid = setInterval(mycode, 5000);
var locs=["hi","MA"]; //3
var arr = ["nfl0💎","nfl0💎"];
var n;
function askForApproval() {
if (Notification.permission === "granted") {
createNotification('POAP', 'POAP');
@nfl0
nfl0 / blockly.xml
Created January 6, 2021 09:10
Marlowe-Swap-Alpha
<xml xmlns="https://developers.google.com/blockly/xml"><block type="BaseContractType" id="root_contract" deletable="false" x="13" y="187"><statement name="BaseContractType"><block type="WhenContractType" id="SAr-2:LHYxXf]+poLeB_"><field name="timeout">15</field><statement name="case"><block type="DepositActionType" id="KXgd):JV@/[t.1mO/w]S"><value name="from_party"><block type="RolePartyType" id="bDNleYN[HH/Vd}@loLT6"><field name="role">party1</field></block></value><value name="value"><block type="ConstantValueType" id="^m(`]We5*IKQJ5}!}k-R"><field name="constant">500</field></block></value><value name="token"><block type="AdaTokenType" id="49(_r^o?gB}2T!EY0R)R"/></value><value name="party"><block type="RolePartyType" id="HAt=vl.Y2M)m-eH@x*rT"><field name="role">party1</field></block></value><statement name="contract"><block type="WhenContractType" id="-J[mM%::`de@%(nxfLCi"><field name="timeout">20</field><statement name="case"><block type="DepositActionType" id="dRTEeBB`M=Gl==hKqwXk"><value name="from_party
@nfl0
nfl0 / blockly.xml
Last active January 6, 2021 09:08
Marlowe-Alpha
<xml xmlns="https://developers.google.com/blockly/xml"><block type="BaseContractType" id="root_contract" deletable="false" x="13" y="187"><statement name="BaseContractType"><block type="PayContractType" id="4UGseRf#`r*AXQ8W8?U+"><value name="payee"><block type="AccountPayeeType" id="Q?a?ic-,esSR-4`ogpQ}"><value name="party"><block type="PKPartyType" id="9z?kxOYJ.its_EMddJHd"><field name="pubkey">addr1q8zkr939nxkul4nnfwdnj7nungeuujpqlk75uy0rxw5ruqujfsxx4s2ycuxm5629natextfld9cs54ms47carfk8r74qa2m2xa</field></block></value></block></value><value name="value"><block type="ConstantValueType" id="F(^N0I+2@|0*nuX4u/58"><field name="constant">20</field></block></value><value name="token"><block type="AdaTokenType" id="jPU1%=1Vp7(nUEK#Ta=f"/></value><value name="party"><block type="PKPartyType" id="KRo^:d~M8Uy/G=qRxq!3"><field name="pubkey">addr1q93lwgqtzgwfpeu0h7trmjn2r347w4unney7xwqygnrc5cujfsxx4s2ycuxm5629natextfld9cs54ms47carfk8r74qhxf4q8</field></block></value></block></statement></block></xml>
@nfl0
nfl0 / nvidia-sensors.sh
Created October 28, 2020 09:38 — forked from fonic/nvidia-sensors.sh
KDE KSysGuard NVIDIA GPU Sensors - see comments below for usage information
#!/usr/bin/env bash
# -------------------------------------------------------------------------
# -
# Created by Fonic (https://github.com/fonic) -
# Date: 12/29/19 - 02/12/20 -
# -
# Created for and tested on single-GPU system equipped with NVIDIA -
# GeForce RTX 2060 SUPER. For other systems, modifications might be -
# required. -
@nfl0
nfl0 / Moroccan regions in SQL statements | Les regions marocaines sous forme de code sql.txt
Last active June 23, 2017 03:56
Moroccan regions in SQL statements | Les regions marocaines sous forme de code sql.
CREATE TABLE IF NOT EXISTS `region` (
`id` int(17) NOT NULL,
`nom` varchar(255) NOT NULL,
`capital` varchar(255) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=latin1;
INSERT INTO `region` (`id`, `nom`, `capital`) VALUES
(1, 'Oued Ed-Dahab-Lagouira', 'Dakhla'),
(2, 'Laâyoune-Boujdour-Sakia El Hamra', 'Laâyoune'),