Skip to content

Instantly share code, notes, and snippets.

View oidoug's full-sized avatar

Douglas Schmidt oidoug

View GitHub Profile
@oidoug
oidoug / robot.js
Created December 5, 2012 16:13 — forked from Shipow/robot.js
TestBed0
var Robot = function(robot) {
robot.rotateCannon(-90);
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.ahead();
//i'll add a clone but i need to refactor collision
//robot.clone();
};
@oidoug
oidoug / robot.js
Created December 5, 2012 16:21 — forked from Shipow/robot.js
TestBed1
var Robot = function(robot) {
robot.rotateCannon(-90);
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.ahead();
//i'll add a clone but i need to refactor collision
//robot.clone();
};
@oidoug
oidoug / robot.js
Created December 5, 2012 16:25 — forked from cgardner/robot.js
derp
var Robot = function(robot){
robot.turnLeft(robot.angle % 90);
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
if (robot.parentId) {
robot.ahead(1);
robot.turnGunRight(1);
}
else {
@oidoug
oidoug / robot.js
Created December 5, 2012 18:49 — forked from gabriel-almeida/robot.js
seeker
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot){
robot.clone();
robot.turn(45);
this.offset = 1;
};
Robot.prototype.onIdle = function(ev) {
@oidoug
oidoug / webview-onscroll.patch
Created January 12, 2018 14:16 — forked from birkir/webview-onscroll.patch
react native WebView onScroll patch
From 12d5a33175038d872d9d6ca8acb00e57f99202c7 Mon Sep 17 00:00:00 2001
From: Birkir Gudjonsson <[email protected]>
Date: Wed, 26 Jul 2017 11:53:42 -0400
Subject: [PATCH] Added onScroll
---
Libraries/Components/WebView/WebView.ios.js | 11 +++++++++++
React/Views/RCTWebView.m | 29 +++++++++++++++++++++++++++++
React/Views/RCTWebViewManager.m | 1 +
3 files changed, 41 insertions(+)

Keybase proof

I hereby claim:

  • I am douglaslondrina on github.
  • I am douglasschmidt (https://keybase.io/douglasschmidt) on keybase.
  • I have a public key ASDxfQHyEhFrXKPWHCu7WSP-u3qbeGcDkm5F4gG-LK3DlAo

To claim this, I am signing this object:

@oidoug
oidoug / yarn-sync.js
Created June 24, 2021 12:31 — forked from bartvanandel/yarn-sync.js
Sync versions from yarn.lock back into package.json
const fs = require("fs");
/**
* Removes matching outer quotes from a string.
*
* @param {string} text - String to unquote
* @returns {string} - Unquoted string
*/
const unquote = text => /(["'])?(.*)\1/.exec(text)[2];
{
"name": "app-mobile",
"version": "1.1.0",
"private": true,
"main": "index.js",
"scripts": {
"start": "npx expo start --dev-client",
},
"devDependencies": {
"@artsy/lint-changed": "^5.3.0",
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
"@0no-co/graphql.web@^1.0.5":
version "1.0.7"
resolved "https://registry.yarnpkg.com/@0no-co/graphql.web/-/graphql.web-1.0.7.tgz#c7a762c887b3482a79ffa68f63de5e96059a62e4"
integrity sha512-E3Qku4mTzdrlwVWGPxklDnME5ANrEGetvYw4i2GCRlppWXXE4QD66j7pwb8HelZwS6LnqEChhrSOGCXpbiu6MQ==
"@ampproject/remapping@^2.2.0":
10.24.0 - [FirebaseAnalytics][I-ACS023007] Analytics v.10.24.0 started
10.24.0 - [FirebaseAnalytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see http://goo.gl/RfcP7r)
10.24.0 - [FirebaseAnalytics][I-ACS044002] The AdSupport Framework is not currently linked. Some features will not function properly. Learn more at http://goo.gl/9vSsPb
10.24.0 - [FirebaseAnalytics][I-ACS800023] No pending snapshot to activate. SDK name: app_measurement
10.24.0 - [FirebaseAnalytics][I-ACS023012] Analytics collection enabled
10.24.0 - [FirebaseAnalytics][I-ACS023220] Analytics screen reporting is enabled. Call Analytics.logEvent(AnalyticsEventScreenView, parameters: [...]) to log a screen view event. To disable automatic screen reporting, set the flag FirebaseAutomaticScreenReportingEnabled to NO (boolean) in the Info.plist
Running application main ({
initialProps = {
};
rootTag = 1;