Skip to content

Instantly share code, notes, and snippets.

View TobiaszCudnik's full-sized avatar

Tobias Cudnik TobiaszCudnik

View GitHub Profile
@TobiaszCudnik
TobiaszCudnik / sf-colors.js
Created September 4, 2022 18:10
blink theme
var lightScheme = {
cursor: "rgba(146, 146, 146, 0.5)", // #929292
foreground: "#000000",
background: "#FFFFFF",
normalBlack: "#000000",
normalRed: "#FC2025",
normalGreen: "#29C732",
normalYellow: "#FC820A",
normalBlue: "#0B5FFE",
normalMagenta: "#463BCC",
Verifying my Blockstack ID is secured with the address 122BridWCRqDo9QYDBdevrjiAewiKZEEE5 https://explorer.blockstack.org/address/122BridWCRqDo9QYDBdevrjiAewiKZEEE5
Verifying my Blockstack ID is secured with the address 122BridWCRqDo9QYDBdevrjiAewiKZEEE5 https://explorer.blockstack.org/address/122BridWCRqDo9QYDBdevrjiAewiKZEEE5
@TobiaszCudnik
TobiaszCudnik / tob.icls
Created March 30, 2017 02:02
Intellij dark pastels color scheme
<scheme name="tob" version="142" parent_scheme="Default">
<option name="LINE_SPACING" value="1.0" />
<option name="EDITOR_FONT_SIZE" value="11" />
<option name="CONSOLE_FONT_NAME" value="Monospaced" />
<option name="CONSOLE_FONT_SIZE" value="10" />
<option name="EDITOR_FONT_NAME" value="DejaVu Sans Mono" />
<colors>
<option name="ADDED_LINES_COLOR" value="989898" />
<option name="ANNOTATIONS_COLOR" value="0" />
<option name="CARET_COLOR" value="c4ef3f" />
@TobiaszCudnik
TobiaszCudnik / iterable-emitter.ts
Created November 8, 2016 13:17
IterableEmitter for ES6/TypeScript - async iterator for an event stream
import { EventEmitter } from "events"
/**
* Transforms a stream of events into an array-like iterable which produces promises.
* Empty event value means the end of the stream.
*
* Poor-man's async iterator.
*
* Usage:
* ```
@TobiaszCudnik
TobiaszCudnik / gist:3131821
Created July 17, 2012 20:25
contracts.coffee class typing
# CoffeeScript classes supported?
# https://github.com/disnet/contracts.coffee/issues/26
# TServer is a contract
# Server is a class
for prop, Tcontr of TServer.oc
continue if not Server::[prop] or
prop is 'constructor'
Server::[prop] :: Tcontr
Server::[prop] = Server::[prop]