Skip to content

Instantly share code, notes, and snippets.

View marco-jardim's full-sized avatar
:octocat:

Marco Jardim marco-jardim

:octocat:
View GitHub Profile
@hrkrshnn
hrkrshnn / generic.org
Last active February 15, 2026 20:33
Some generic writeup about common gas optimizations, etc.

Upgrade to at least 0.8.4

Using newer compiler versions and the optimizer gives gas optimizations and additional safety checks for free!

The advantages of versions 0.8.* over <0.8.0 are:

  • Safemath by default from 0.8.0 (can be more gas efficient than some library based safemath).
  • Low level inliner from 0.8.2, leads to cheaper runtime gas. Especially relevant when the contract has small functions. For
@PaulSec
PaulSec / coin-hive.txt
Last active April 20, 2022 07:32
Extract from the Top 1M Alexa domains (and also from investigations) using coin-hive mining service
0x00sec.org
10.32.59.31:32204
10.45.35.173:7990
1122qq.weebly.com
123movies.co
123moviesfull.co
123movies.re
1337x.io
141jav.com
1592878.com
/*
TITLE: CODE GRABBER FOR HT6P20B ENCODER
CREATED BY: AFONSO CELSO TURCATO
DATE: 14/JAN/2014
E-MAIL: acturcato (at) gmail.com
LICENSE: GPL
REV.: 00
DESCRIÇÃO:
http://acturcato.wordpress.com/2014/01/14/clonagem-de-controle-remoto-rf-learning-code-ht6p20b-com-arduino/
anonymous
anonymous / gist:5022462
Created February 24, 2013 03:37
class Integer
def factorial
return 1 if self == 0
(1..self).inject(:*)
end
def nPr(r)
numerator = self.factorial
denominator = self.factorial(self - r)
@permutations = (self-r+1 .. self).inject(:*)