Skip to content

Instantly share code, notes, and snippets.

Take this example SWIFT message:

{1:F01MIDLGB22AXXX0548034693}{2:I103BKTRUS33XBRDN3}{3:{108:MT103}}{4:
:20:8861198-0706
:23B:CRED
:32A:000612USD5443,99
:33B:USD5443,99
:50K:GIAN ANGELO IMPORTS
NAPLES

Keybase proof

I hereby claim:

  • I am sunny-g on github.
  • I am sunnyg (https://keybase.io/sunnyg) on keybase.
  • I have a public key whose fingerprint is 2336 1B38 D24D 5215 1B25 1699 86D3 A176 81A5 B330

To claim this, I am signing this object:

@sunny-g
sunny-g / meteor-github-oauth.js
Last active June 12, 2017 06:37
How to create Github OAuth credentials and access tokens with Meteor, without logging-in the user nor using accounts-github
if (Meteor.isClient) {
Template.hello.events({
'click .github': function() {
// initiate the OAuth process:
// ask for the desired permissions
// run the callback after the user authorizes the app
// https://github.com/meteor/meteor/blob/devel/packages/github/github_client.js#L8
Github.requestCredential({
loginStyle: 'popup',
requestPermissions: ['gist']
@sunny-g
sunny-g / whuffie.md
Created September 15, 2015 04:45
example whuffie identity verification gist

my name on whuffie is +sunny and my address is 1234 this is an edit

@sunny-g
sunny-g / LICENSE.txt
Last active September 16, 2015 20:01 — forked from tkafka/LICENSE.txt
Drop-in replacement for ReactCSSTransitionGroup that uses velocity.js instead of CSS transforms. Add your own transitions to `transitions` hash.
The MIT License (MIT)
Copyright (c) 2014 Tomas Kafka
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@sunny-g
sunny-g / limitLoop.js
Created January 19, 2016 05:30 — forked from addyosmani/limitLoop.js
Limit the frame-rate being targeted with requestAnimationFrame
/*
limitLoop.js - limit the frame-rate when using requestAnimation frame
Released under an MIT license.
When to use it?
----------------
A consistent frame-rate can be better than a janky experience only
occasionally hitting 60fps. Use this trick to target a specific frame-
rate (e.g 30fps, 48fps) until browsers better tackle this problem
@sunny-g
sunny-g / ScreenTreeNode.js
Created January 20, 2016 00:24 — forked from DavidBruant/ScreenTreeNode.js
2D BSP in JavaScript
(function(global){
"use strict";
function constEnumPropValueDesc(v){
return {
value: v,
enumerable: true,
configurable: false,
writable: false
};
@sunny-g
sunny-g / index.ios.js
Created January 29, 2016 17:36 — forked from staltz/index.ios.js
Experiment with Cycle.js and React Native
'use strict';
var React = require('react-native');
var Cycle = require('cyclejs');
var {Rx, h} = Cycle;
var createExperimentalIOSRenderer = require('./src/ios-renderer.ios.js');
var {StyleSheet, Text, TextInput, View} = React;
var styles = StyleSheet.create({
container: {
@sunny-g
sunny-g / 01-createObservableFromDeviceEventEmitter.js
Created March 18, 2016 02:21 — forked from sectore/01-createObservableFromDeviceEventEmitter.js
[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(
@sunny-g
sunny-g / frp.md
Created March 18, 2016 17:32 — forked from ohanhi/frp.md
Learning FP the hard way: Experiences on the Elm language

Learning FP the hard way: Experiences on the Elm language

by Ossi Hanhinen, @ohanhi

with the support of Futurice 💚.

Licensed under CC BY 4.0.

Foreword