Skip to content

Instantly share code, notes, and snippets.

@sectore
sectore / keybase.md
Created October 17, 2017 06:53
keybase.md

Keybase proof

I hereby claim:

  • I am sectore on github.
  • I am sectore (https://keybase.io/sectore) on keybase.
  • I have a public key ASBWOI8gN25WE9gubhgXfBwdetsnj_VsISn5Rpveaj4knwo

To claim this, I am signing this object:

@sectore
sectore / parallels-very-unofficial-cheatsheet.md
Last active June 27, 2017 08:55
Veeeery UnOfficial `Parallels` cheatsheet
--
-- Sample PureScript React Native App
-- https://github.com/doolse/purescript-reactnative
--
module Main where
import Prelude
import Control.Monad.Eff (Eff)
import React (ReactClass, createClass, spec)
@sectore
sectore / Main.elm
Created August 1, 2016 20:39
How to run `Time.now` with `init`
module Main exposing (..)
import Html exposing (..)
import Html.App as Html
import Time
import Basics.Extra exposing (never)
import Task
main : Program Never
@sectore
sectore / notes_egghead_vim.md
Last active April 17, 2016 14:46
Notes about egghead.io's "Learn to use VIM"
@sectore
sectore / 01-createObservableFromDeviceEventEmitter.js
Last active November 26, 2023 06:42
[React Native + RxJS] Create an Observable from DeviceEventEmitter - An example to handle 'locationUpdated' event
import React, {DeviceEventEmitter} from 'react-native';
import {Observable} from 'rx-lite'
/**
* Creates an Observable to listen to any event of DeviceEventEmitter
* @param type {string} Event type
*/
export default createObservableFromDeviceEventEmitter$ = type => {
let subscription;
return Observable.fromEventPattern(
@sectore
sectore / sending-receiving-base64encodeImage.coffee
Created December 22, 2011 19:55
Client-side Roundtrip to send and receive (binary) image data using Socket.IO
###
1 SENDING DATA
1.1 get original image data clicking on it
1.2 get its base64-encoded data
1.3 emit the data by Socket.IO to server (Node.js)
###