Skip to content

Instantly share code, notes, and snippets.

View rubensayshi's full-sized avatar

Ruben de Vries rubensayshi

  • Amsterdam, Netherlands
View GitHub Profile
@rubensayshi
rubensayshi / main.go
Created December 22, 2020 09:31
go-ruleguard with excludes
package main
import (
"flag"
"strings"
"github.com/quasilyte/go-ruleguard/analyzer"
"golang.org/x/tools/go/analysis"
"golang.org/x/tools/go/analysis/singlechecker"
)
package main
import (
"fmt"
"time"
)
func main() {
start := time.Now()
package main
import (
"fmt"
"testing"
)
type SampleStruct struct {
a int
b int
<?php
$ch = curl_init("https://api.blocktrail.com/v1/BTC/price?api_key=MY_APIKEY");
curl_setopt_array($ch, [
CURLOPT_VERBOSE => true,
CURLOPT_CERTINFO => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_SSL_VERIFYPEER => true,
dif42aGiLQhbcICjOs(KIusJcu6uGIxbIQKzHKULsj2fs1VqIOHPusoMIKwMQO6zOOQPHIkxdjsBdfrnofPuNdfrwNsj18arvQ7PknqqquhejQfcc8queMOIuDrKqBuveFuvKgjiQCsLsTsi9sfPeMPIkUjik7ee5NksmuvrzPqfEkszQkQ6QkQ0wbrv9vqqzSGOk8wuuMliiDxuK2li9xuyWYHrSyqOhROmzL0Lb2mO6ZkIrRkCAOSAfPe9AOIMTkDBLIDJQFdXWHQooiiSCfEUQA6Q46O02vI(UIumEqq15vcRhevrVhQuZhjc3hjy)0qNk05HsBduARqPTcDEO0wX(tlz5ZoylbqPr4lGsBf7J)swmpac)aLgUMbL2m2)bzZ8ai8duAWz5ZoyiCyHruZmddUXrogHDqya4lPVI9XFjlSZda3gGd7GB77IAMzG7hydWHDWnc7GWaWxsFf7J)swya(QOa(kuAKzhSLG5hytMagqgYkakK2Yu3kO0yhxO0ECo4)BnLKsonKji0XqOKqa6KTAkmP5onBHsovMdknYSdgc)dDEO0W4yhOZdL2m2)bzduABzlqgzfyqCH9mY5G9jSd2peY0MnyHieW(pGXx0TSfkVUAe(cd)LSam(208aX(pqyVR8P1Jbwcggebg5)XMWbR2dWaq3MdGSeyGn4plmm4gyjySaHdS)de27QbrGr(FSjCWQOe2bHbGVK(kc)q5)hBc3EnClQzMnToNfdSLyG70QOuqur3YwGWEaopad7Gyi87c7)azASfiSdJ8)yt4Ba8JHmmWsWybch8nY)JnHVbWpIsyhega(s6K71En4K7hiQOBzlqypaNhGHDEaShi3f2KbclE7FiJJHWTZdGnWM84yFSvGHa3opager(FrjSdcdaFjDihYDbTdzCMchhytECSxdo5(bIk6w2Y0NIbPPmVrXPV98geqX5mfimrjSdcdaFj9d4FSxdo5(bIsyhega(s6tgiS4)2RH7D4G7ovB)In5XzNcIsyhega(s
package main
import (
"log"
"sync"
)
type Type int
const (
@rubensayshi
rubensayshi / challange.md
Last active December 20, 2016 09:18
The Psychic Poker Player Code Challenge

The Psychic Poker Player

The purpose of this code challenge is to demonstrate problem solving and code quality.

Any language can be used to solve the problem and any libraries may be used except any Poker related libraries.

The Problem

In 5-card draw poker, a player is dealt a hand of five cards (which may be looked at). The player may then discard between zero and five of his or her cards and have them replaced by the same number of cards from the top of the deck (which is face down). The object is to maximize the value of the final hand. For the different values of hands in poker see the References.

/script local t=0;local ids={10880, 10883, 10886, 10889, 10892, 10895, 10898, 10901, 10904, 10907, 10910};for i=1,table.getn(ids) do t=t+GetStatistic(ids[i]) end;print(t)
var bip39 = require('bip39');
if (!String.prototype.repeat) {
String.prototype.repeat = function(count) {
'use strict';
if (this == null) {
throw new TypeError('can\'t convert ' + this + ' to object');
}
var str = '' + this;
count = +count;
if (count != count) {

Setup Counterparty using Federated Node Docker builds

Follow the documentatation with the below exceptions; http://counterparty.io/docs/federated_node/

After doing

git clone https://github.com/CounterpartyXCP/federatednode.git
cd federatednode