- Toilet Paper
- Coffee
- Paper Towel
- Dish Detergent
- LOVE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Accelerometer.m | |
#import <React/RCTBridge.h> | |
#import <React/RCTEventEmitter.h> | |
#import <React/RCTBridgeModule.h> | |
#import "Accelerometer.h" | |
@implementation Accelerometer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
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:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
import React, { Component, createElement } from 'react'; | |
import { | |
AppRegistry, | |
Text, | |
View, | |
Navigator, | |
TouchableOpacity, | |
Image, | |
} from 'react-native'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | |
}); |
NewerOlder