Skip to content

Instantly share code, notes, and snippets.

Nicholas Kariniemi hoodunit

Block or report user

Report or block hoodunit

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@hoodunit
hoodunit / tslint.test.ts
Created Jun 4, 2019
TypeScript TSLint test (as normal unit test)
View tslint.test.ts
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',
@hoodunit
hoodunit / Main.purs
Created Jun 27, 2018
RevealJS with PureScript Halogen hack
View Main.purs
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 / PsJsonExample.purs
Last active Nov 20, 2017
PureScript: representing JSON values with many nested optional fields
View PsJsonExample.purs
-- 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 _
View 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
You can’t perform that action at this time.