Skip to content

Instantly share code, notes, and snippets.

View ahalls's full-sized avatar

Andrew Halls ahalls

View GitHub Profile
@ahalls
ahalls / console.log
Created December 7, 2016 09:08
image-cache exception java.lang.NullPointerException: android.util.LruCache.get(LruCache.java:112)
srun android --emulator h
Executing before-prepare hook from /Users/ahalls/Work/RippleEffectInteractive/dawes-mobile-app/Dawes/hooks/before-prepare/nativescript-dev-android-snapshot.js
Executing before-prepare hook from /Users/ahalls/Work/RippleEffectInteractive/dawes-mobile-app/Dawes/hooks/before-prepare/nativescript-dev-typescript.js
Found peer TypeScript 2.0.10
Project successfully prepared (android)
Executing after-prepare hook from /Users/ahalls/Work/RippleEffectInteractive/dawes-mobile-app/Dawes/hooks/after-prepare/nativescript-dev-android-snapshot.js
Starting a new Gradle Daemon for this build (subsequent builds will be faster).
:config phase: createDefaultIncludeFiles
+found plugins: nativescript-mapbox
@ahalls
ahalls / console.log
Created December 6, 2016 23:10
Error: No provider for ViewUtils!
rm -rf platforms/ node_modules/ hooks/
GALTMB03:Dawes ahalls$ tns run ios --emulator --log trace
execFile: /Users/ahalls/Library/Android/sdk/platform-tools/adb "help"
execFile: /Users/ahalls/Library/Android/sdk/platform-tools/adb "help"
spawn: /Users/ahalls/Library/Android/sdk/platform-tools/adb "--help"
Socket {
connecting: false,
_hadError: false,
_handle:
Pipe {
GALTMB03:MyApp2625 ahalls$ tns platform add ios
Copying template files...
Project successfully created.
GALTMB03:MyApp2625 ahalls$ tns run ios --emulator
Successfully prepared plugin tns-core-modules for ios.
Successfully prepared plugin tns-core-modules-widgets for ios.
Project successfully prepared (ios)
Build settings from command line:
ARCHS = i386 x86_64
CODE_SIGN_IDENTITY =
@ahalls
ahalls / Terminal Output
Created September 14, 2016 23:03
NativeScript 2.2.1 and Node 4.5
GALTMB03:nativescript ahalls$ rm -rf testproject*
GALTMB03:nativescript ahalls$ tns create testproject
Project testproject was successfully created.
GALTMB03:nativescript ahalls$ cd testproject/
GALTMB03:testproject ahalls$ tns run ios --log trace
execFile: /Users/ahalls/Library/Android/sdk/platform-tools/adb "help"
execFile: /Users/ahalls/Library/Android/sdk/platform-tools/adb "help"
spawn: /Users/ahalls/Library/Android/sdk/platform-tools/adb "--help"
Socket {
GALTMB03:nativescript ahalls$ npm cache clear
GALTMB03:nativescript ahalls$ npm install -g nativescript
npm WARN excluding symbolic link docs/stylesheets/hightlight.css -> ../../node_modules/highlight.js/src/styles/solarized_light.css
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN excluding symbolic link docs/assets/ir_black.css -> ../../node_modules/highlight.js/src/styles/ir_black.css
npm WARN excluding symbolic link examples/TestFramework/Test Framework.framework/Resources -> Versions/Current/Resources
npm WARN excluding symbolic link examples/TestFramework/Test Framework.framework/Test Framework -> Versions/Current/Test Framework
npm WARN excluding symbolic link examples/TestFramework/Test Framework.framework/Versions/Current -> A
npm WARN deprecated lodash-node@2.4.1: This package has been discontinued in favor of lodash@^4.0.0.
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
GALTMB03:nativescript ahalls$ tns create testproject221
Project testproject221 was successfully created.
GALTMB03:nativescript ahalls$ cd testproject221/
GALTMB03:testproject221 ahalls$ tns run ios --log trace 2>&1 >>trace.log
2016-09-11 08:22:53.410 xcodebuild[50118:77004883] [MT] PluginLoading: Required plug-in compatibility UUID ACA8656B-FEA8-4B6D-8E4A-93F4C95C362C for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/XToDo.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2016-09-11 08:22:53.411 xcodebuild[50118:77004883] [MT] PluginLoading: Required plug-in compatibility UUID ACA8656B-FEA8-4B6D-8E4A-93F4C95C362C for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/VVDocumenter-Xcode.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2016-09-11 08:22:53.412 xcodebuild[50118:77004883] [MT] PluginLoading: Required plug-in compatibility UUID ACA8656B-FEA8-4B6D-8E4A-93F4C95C362C for plug-in at path '~/Library/Application Support/Developer/Shared
//: Playground - noun: a place where people can play
import UIKit
import XCPlayground
XCPlaygroundPage.currentPage.needsIndefiniteExecution = true
class FunWithTimers: NSObject {
var timer: NSTimer?
import random
#Questions, defining variables
questions = {
"strong": "Do you want it to be strong?",
"salty": "Is dis too salty for ya?",
"bitter": "Too bitty ehh?",
"sweet": "Sweet mama...!",
"fruitty": "Juicy Juicy ye",
}
## INCOMPLETE - LOOP WILL GO ON FOREVER
lester_walker = 0
london_walker = 102
walking = True
while walking:
lester_walker += 1
london_walker -= 2
//: Playground - noun: a place where people can play
import Foundation
struct Fibonacci : SequenceType {
let includesZero: Bool
init(includesZero: Bool = false) {
self.includesZero = includesZero
}