Skip to content

Instantly share code, notes, and snippets.

@yann300
yann300 / README.txt
Created Jan 28, 2021
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=undefined&optimize=undefined&runs=undefined&gist=
View README.txt
REMIX EXAMPLE PROJECT
Remix example project is the project which is there at the time of very first loading of Remix. It contains mainly 3 directories:
'contracts', 'scripts' & 'tests'.
'contracts' directory holds 3 contracts with different complexity level.
'scripts' directory holds the scripts to deploy a contract using web3.js or ethers.js libraries.
'tests' directory contains a test file with unit tests for 'Ballot' contract.
View Tmux conf
# Remap prefix from 'C-b' to 'C-w'
unbind C-b
set-option -g prefix C-w
bind-key C-w send-prefix
# split panes using | and -
bind + split-window -h
bind - split-window -v
unbind '"'
unbind %
View machine.js
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
View sync_repodata.logs
INFO: 122.176.251.58:0 - "PUT /api/channels/robostack-experimental/actions HTTP/1.0" 200 OK
DEBUG: [quetz] executing synchronize_packages task in a process 10
ERROR: [quetz] can not get repodata_from_packages.json for channel linux-64/robostack-experimental.
ERROR: [quetz] Trying next filename.
DEBUG: [quetz] comparing synchronisation timestamps of ros-foxy-actionlib-msgs-2.0.3-py38h348cfbe_0.tar.bz2
DEBUG: [quetz] comparing synchronisation timestamps of ros-foxy-action-msgs-1.0.0-py38h348cfbe_0.tar.bz2
DEBUG: [quetz] comparing synchronisation timestamps of ros-foxy-ament-cmake-0.9.8-py38h348cfbe_0.tar.bz2
DEBUG: [quetz] comparing synchronisation timestamps of ros-foxy-ament-cmake-auto-0.9.8-py38h348cfbe_0.tar.bz2
DEBUG: [quetz] comparing synchronisation timestamps of ros-foxy-ament-cmake-copyright-0.9.6-py38h348cfbe_0.tar.bz2
DEBUG: [quetz] comparing synchronisation timestamps of ros-foxy-ament-cmake-core-0.9.8-py38h348cfbe_0.tar.bz2
@louluu
louluu / PY0101EN-1-2-Strings.ipynb
Created Jan 28, 2021
Created on Skills Network Labs
View PY0101EN-1-2-Strings.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@zittix
zittix / hoval-gw.py
Created Jan 28, 2021
Decoding Hoval heater CAN Bus
View hoval-gw.py
# This file is just a sample file that does:
# 1) Open CAN bus can0 on the device (for example a raspberry PI using socketcan)
# 2) Listening for simple message coming from Hoval heater TTE-WEZ
# 3) Publishing each recognized data points to a MQTT broker located at IP 192.168.0.96 with username/password hoval/hoval
import can
import asyncio
import logging
import paho.mqtt.client as mqtt
@AlexMorgan3817
AlexMorgan3817 / Sampler.py
Last active Jan 28, 2021
This Script use .yml to create multiply samples of same file, but with changed parts
View Sampler.py
import sys
from os import system as sh
from yaml import load, dump
try:
from yaml import CLoader as Loader, CDumper as Dumper
except ImportError:
from yaml import Loader, Dumper
class ErrorCode:
@rzeh4n
rzeh4n / Main.java
Created Jan 28, 2021
Test paměťové náročnosti HashSetu pro 60mil uuid
View Main.java
import java.time.LocalDateTime;
import java.util.*;
/**
* Spuštění:
* 1. toto uložit do Main.java
* 2. javac ./Main.java
* 3. java -Xmx16g Main
*
* Příklad výstupu:
View 20210128_grafico_cantareira.R
#' Author: Beatriz Milz
#' Subject: Gráfico do volume armazenado no Sistema Cantareira. Dados da sabesp,
#' disponíveis no pacote mananciais.
library(readr)
library(ggplot2)
library(magrittr)
# Import -----------------------------------------------------------------------
View AnimationName-1611837792608-550.css
.css-selector {
    background: linear-gradient(239deg, #0d57ec, #b90dec, #0dec3d, #a900f7);
    background-size: 800% 800%;
    -webkit-animation: AnimationName 51s ease infinite;
    -moz-animation: AnimationName 51s ease infinite;
    -o-animation: AnimationName 51s ease infinite;
    animation: AnimationName 51s ease infinite;
}
@-webkit-keyframes AnimationName {
    0%{background-position:0% 83%}