Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@hoodunit
hoodunit / Nightweb Crash
Created March 6, 2014 16:53
Nightweb Crash
03-06 18:51:07.113 1057 PanelView V animationTick called with dtms=0; nothing to do (h=1776.0 v=-6000.0)
03-06 18:51:07.113 801 ActivityManager I START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 pkg=net.nightweb cmp=net.nightweb/.SplashActivity} from pid 18489
03-06 18:51:07.183 801 dalvikvm D GC_FOR_ALLOC freed 3437K, 15% free 44439K/51792K, paused 68ms, total 68ms
03-06 18:51:07.193 801 InputMethodManager.. W Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@4401eaf0 attribute=null, token = android.os.BinderProxy@4
30e6478
03-06 18:51:07.213 801 ActivityManager I Start proc net.nightweb for activity net.nightweb/.SplashActivity: pid=22148 uid=10150 gids={50150, 3003, 1028, 1015}
03-06 18:51:07.283 22148 dalvikvm D GC_FOR_ALLOC freed 50K, 1% free 16762K/16844K, paused 14ms, to
@hoodunit
hoodunit / PsJsonExample.purs
Last active November 20, 2017 15:45
PureScript: representing JSON values with many nested optional fields
-- PureScript representation for the JSON object
-- accepted by an API.
newtype Job = Job
{ apiVersion :: (NullOrUndefined String)
, kind :: (NullOrUndefined String)
, metadata :: (NullOrUndefined MetaV1.ObjectMeta)
, spec :: (NullOrUndefined JobSpec)
, status :: (NullOrUndefined JobStatus) }
derive instance newtypeJob :: Newtype Job _
@hoodunit
hoodunit / Main.purs
Created June 27, 2018 13:46
RevealJS with PureScript Halogen hack
appComponent :: forall m. H.Component HH.HTML Query Unit Void m
appComponent = H.component
{ initialState: const {}
, render
, eval
, receiver: const Nothing
}
render :: State -> H.ComponentHTML Query
@hoodunit
hoodunit / tslint.test.ts
Created June 4, 2019 13:01
TypeScript TSLint test (as normal unit test)
import * as ts from 'typescript'
import { Configuration, ILinterOptions, Linter, LintResult } from 'tslint'
interface TestConfig {
lint: string
projectDir: string
ts: string
}
const testConfig = {
lint: 'tslint.json',