Skip to content

Instantly share code, notes, and snippets.

View KevinVitale's full-sized avatar
👾
Game Boy

Kevin Vitale KevinVitale

👾
Game Boy
View GitHub Profile

0x11871ec91200773521dcacce0b2e636bef45f17b0dffd8c12019f489292e50a4

@KevinVitale
KevinVitale / ClientAPI.swift
Last active February 12, 2020 00:57
ClientAPI + callAsFunction
import Foundation
import AnyCodable
#if !canImport(Darwin)
import FoundationNetworking
#endif
public protocol JSONRPCAPI: Codable {
static var prefix :String { get }
}
@KevinVitale
KevinVitale / LOGN.json
Created September 8, 2019 03:09
LOGN Contract
{
"contractName": "LOGN",
"abi": [
{
"constant": true,
"inputs": [
{
"name": "interfaceId",
"type": "bytes4"
}
@KevinVitale
KevinVitale / minutemachine.py
Created February 24, 2019 19:15
Extra Minute Machine
#!/usr/bin/env python3
import random
import string
import colorsys
import time
import math
import signal
import rainbowhat
@KevinVitale
KevinVitale / Example.swift
Last active February 12, 2019 03:49
Generate Random Data (Swift)
print(Data.random(0xF).hexString())
// Possible Output:
// D6 33 7F 6A B3 D7 A6 B2 E9 24 12 79 73 C4 C1 E5
@KevinVitale
KevinVitale / Dockerfile
Created August 27, 2018 19:48 — forked from up1/Dockerfile
Docker with COBOL
FROM ubuntu:16.04
#update and get pre-requisites
RUN apt-get update && apt-get install -y \
open-cobol \
gcc
#copy file to image
COPY helloworld.cbl /helloworld.cbl
@KevinVitale
KevinVitale / sdl-metal-example.m
Created July 4, 2018 17:06 — forked from slime73/sdl-metal-example.m
SDL + Metal example
/**
* This software is in the public domain. Where that dedication is not recognized,
* you are granted a perpetual, irrevokable license to copy and modify this file
* as you see fit.
*
* Requires SDL 2.0.4.
* Devices that do not support Metal are not handled currently.
**/
#import <UIKit/UIKit.h>

Keybase proof

I hereby claim:

  • I am kevinvitale on github.
  • I am kevinvitale (https://keybase.io/kevinvitale) on keybase.
  • I have a public key ASBjZ5iOxi5ZkH-0rcaL6Aid8-JoSs-4b2a9Gg6WRivd4Ao

To claim this, I am signing this object:

@KevinVitale
KevinVitale / String+LineWrap
Last active September 9, 2017 21:46
Format strings to a maximum line width
Default width (15):
Lorem Ipsum is simply
dummy text of the
printing and typesetting
industry. Lorem
Ipsum has been the
industry's standard
dummy text ever
since the 1500s, when
@KevinVitale
KevinVitale / ImageProperty.swift
Last active April 1, 2016 14:10
`PropertyType` for easily fetching images in ReactiveCocoa 4.0.1
import ReactiveCocoa
#if os(iOS)
public typealias ImageType = UIImage
#else
#if os(OSX)
public typealias ImageType = NSImage
#endif
#endif