Skip to content

Instantly share code, notes, and snippets.

View costco.md
  • Toilet Paper
  • Coffee
  • Paper Towel
  • Dish Detergent
  • LOVE
View Accelerometer.m
// Accelerometer.m
#import <React/RCTBridge.h>
#import <React/RCTEventEmitter.h>
#import <React/RCTBridgeModule.h>
#import "Accelerometer.h"
@implementation Accelerometer
View sensors.js
import { DeviceEventEmitter, NativeModules, NativeEventEmitter } from "react-native";
import { Observable } from "rxjs";
import { publish, refCount } from "rxjs/operators";
import * as RNSensors from "./rnsensors";
const {
Gyroscope: GyroNative,
Accelerometer: AccNative,
Magnetometer: MagnNative,
Barometer: BarNative
View keybase.md

Keybase proof

I hereby claim:

  • I am allthetime on github.
  • I am allthetime (https://keybase.io/allthetime) on keybase.
  • I have a public key whose fingerprint is 7E7D EDE5 12CC 0384 5536 0E59 E9E7 C858 2161 6403

To claim this, I am signing this object:

View nice CROSS
cl_crosshairalpha "200";cl_crosshaircolor "5";cl_crosshaircolor_b "50";cl_crosshaircolor_r "250";cl_crosshaircolor_g "50";cl_crosshairdot "0";cl_crosshairgap "0";cl_crosshairsize "2";cl_crosshairstyle "4";cl_crosshairusealpha "0";cl_crosshairthickness "1.5";cl_fixedcrosshairgap "0";cl_crosshair_outlinethickness "0";cl_crosshair_drawoutline "0";
View index.ios.js
'use strict';
import React, { Component, createElement } from 'react';
import {
AppRegistry,
Text,
View,
Navigator,
TouchableOpacity,
Image,
} from 'react-native';
View dependency_injection.js
// main file
var some_module = require('some_module');
var mod1 = require('./module1.js')(some_module);
var mod2 = require('./module2.js')(some_module);
// module1.js
var mod1 = function(some_module) {
View gist:64630baf4f807f45c59b
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="MYPACKAGENAME" >
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
View gist:ec621fce00dbafe0cb86
function AttArg(options) {
if (!options) var options = {};
// a default value is given in case the options object doesn't contain an option
var option_one = options.option_one || 1
var option_two = options.option_two || 2
// do something
View gist:24596060d8a1697bc29d
var PeerServer = require('peer').PeerServer;
var server = new PeerServer({port: 9000, path: '/myapp'});
var request = require('request');
console.log("peer server listening on 9000")
server.on('connection', function(id) {
console.log("connected: " + id)
});