Skip to content

Instantly share code, notes, and snippets.

View skynode's full-sized avatar
💭
I may be slow to respond.

Obi skynode

💭
I may be slow to respond.
  • Amsterdam, The Netherlands
View GitHub Profile
@skynode
skynode / test.md
Created January 29, 2019 11:25
Hello World Markdown

Hello World

This is content converted from Markdown!

Here's a JSON sample:

{
  "foo": "bar"
}
@skynode
skynode / RecursiveReplace.ps
Created September 19, 2018 10:48 — forked from jongalloway/RecursiveReplace.ps
Recursive replace in files (PowerShell)
$find = 'jquery-1\.4\.4'
$replace = 'jquery-1\.5\.1'
$match = '*.cshtml' , '*.vbhtml'
$preview = $true
foreach ($sc in dir -recurse -include $match | where { test-path $_.fullname -pathtype leaf} ) {
select-string -path $sc -pattern $find
if (!$preview) {
(get-content $sc) | foreach-object { $_ -replace $find, $replace } | set-content $sc
}
@skynode
skynode / README.md
Created August 17, 2018 01:27 — forked from hofmannsven/README.md
My simply Git Cheatsheet
0x00 0 STOP
0x01 3 ADD
0x02 5 MUL
0x03 3 SUB
0x04 5 DIV
0x05 5 SDIV
0x06 5 MOD
0x07 5 SMOD
0x08 8 ADDMOD
0x09 8 MULMOD
@skynode
skynode / blocktoimg.py
Created July 28, 2018 19:11 — forked from laanwj/blocktoimg.py
simple tools to write (block) data to png files
#!/usr/bin/env python3
# Distributed under the MIT software license
import binascii, struct, sys
from PIL import Image
def div_roundup(x,y):
return (x+y-1)//y
f = open(sys.argv[1], 'r')
outfilename = sys.argv[2]
@skynode
skynode / createContract.js
Created March 31, 2018 22:58 — forked from frozeman/createContract.js
Deploy contracts on Ethereum and reliable get the contract address
// -> Soldity
// **********
// Your Soldity contract
event Created(bytes32 indexed identifier);
contract MyContract {
function MyContract(bytes32 identifier) {
Created(identifier);
}
@skynode
skynode / gist:493ff03b274d4df477392f38bf21c40f
Created December 10, 2017 15:53 — forked from bt5e/gist:7507535
Markdown subscript and superscript

Testing subscript and superscript

Testing subscript subscript level 2

Testing superscript superscript level 2

@skynode
skynode / bibtex.png
Created November 21, 2017 22:30 — forked from max-mapper/bibtex.png
How to make a scientific looking PDF from markdown (with bibliography)
bibtex.png
@skynode
skynode / Benchmark.cs
Created November 9, 2017 21:33 — forked from mcliment/Benchmark.cs
Test to check the speed of List.ForEach vs List.AddRange
using System;
using System.Collections.Generic;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Attributes.Jobs;
namespace ForEachVsAddRange
{
[MemoryDiagnoser]
public class Benchmark
{
@skynode
skynode / README.md
Created October 9, 2017 02:00 — forked from eddiejaoude/README.md
Install Firefox addon/extension with no user interaction