Skip to content

Instantly share code, notes, and snippets.

@ranbena
ranbena / Flow.js
Last active December 14, 2018 10:06
Extending Flow types
// extending existing type
type SelectOption = {
value: string,
label: string
}
const option1: SelectOption = {
value: 'value',
label: 'label'
}
@ranbena
ranbena / interface.jsx
Created December 14, 2018 09:32
Javascript class interface implements
class Foo {
on(foo: string) {
}
}
interface IBar {
on(foo: 'bar'): void;
}
class Bar extends Foo implements IBar {
@ranbena
ranbena / CoZ_Contributions_Week_75.md
Last active December 9, 2018 06:37
CoZ contributions week #75

Neon Wallet

Features

  1. QR Scan - Added loading indicator
  2. QR scan - Added error handling and messages
@ranbena
ranbena / CoZ_Contributions_Week_74.md
Created November 28, 2018 20:10
CoZ contributions week #74
@ranbena
ranbena / CoZ_Contributions_Week_73.md
Last active November 26, 2018 09:19
CoZ contributions week #73

Neon Wallet

Issues

  1. Added detail to duplicate wallet name error message #1716
  2. Fixed wrong chart currency when changing duration #1717
  3. Fixed transaction behavior decrepancies between Activity and Send pages #1720 and #1721
  4. Fixed and improved version check mechanism #1724

Features

  1. MultiSig feature #1695 - steadily bringing myself up to speed on blockchain tech as preparation.
@ranbena
ranbena / CoZ_Contributions_Week_Nov_19_2018.md
Last active November 19, 2018 13:44
CoZ contributions week till Nov 19, 2018

Neon Wallet

Issues

  1. Added wallet import name duplication validation #1697
  2. Fixed notification text overlapping #1698
  3. Fixed incorrect currency symbol in "Token Sale" - reported #1705 and fixed #1706
  4. Researched issue and found it's actually a NeoScan bug. #1701

Features

  1. Doing understand work for MultiSig feature #1695
@ranbena
ranbena / CoZ_Contributions_Week_Nov_12_2018.md
Last active November 12, 2018 04:31
CoZ contributions week till Nov 12, 2018

Neon Wallet

  1. Implemented chart duration dropdown #1659
  2. Passphrase form validation in wallet creation #1667
  3. Added font-family fallbacks to all non-generic declerations #1639
@ranbena
ranbena / install.sh
Last active August 29, 2015 14:24
Install Raspi2 OpenElec
# 1. Download ARMv7 Builds - RPi2 ARMv7 quad core models (Model B 1024MB) from http://openelec.tv/get-openelec
# 2. extract downloaded file
gunzip -d OpenELEC-RPi2.arm-5.95.2.img.gz
# 3. attach sdcard
# 4. detect sdcard name (probably /dev/disk3)
diskutil list
@ranbena
ranbena / regex
Created May 21, 2015 17:12
get json item from start to end
\{"appUrl":"http:\/\/topwebsites\.flyapps\.me((?!"name":).)*"name":"[^"]+"\}
@ranbena
ranbena / server.py
Last active August 29, 2015 14:11 — forked from amirnissim/server.py
import tornado.httpserver
import tornado.ioloop
import tornado.web
class Handler(tornado.web.RequestHandler):
def error(self):
self.set_header("Access-Control-Allow-Credentials", "true")
self.set_header("Access-Control-Allow-Origin", "")
self.set_header("Access-Control-Allow-Methods", "GET, POST")