Skip to content

Instantly share code, notes, and snippets.

View nponeccop's full-sized avatar

nponeccop

  • Barcelona, Spain
  • 15:12 (UTC +03:00)
View GitHub Profile
@nponeccop
nponeccop / README.md
Created June 15, 2016 23:49
24 FPS on sluggish LG L90 Duos

Lightning fast SVG chart

3x improvement vs previous version: 24 vs 8 vps on LG L90 Duos

High-end phones should all give 60 fps now

@nponeccop
nponeccop / README.md
Last active June 11, 2016 22:43
60 FPS on iPhone

The code uses a slightly modified version of d3-axis component.

@nponeccop
nponeccop / bench.ipynb
Last active May 10, 2016 05:09
Abraxas #18 bench 1
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nponeccop
nponeccop / main.js
Last active April 21, 2016 03:19
swizard task in Node
var parse = require('sexpr-plus').parse
var Q = require('q')
var ops = {
'+' : (a, b) => a + b
, '-' : (a, b) => a - b
, '*' : (a, b) => a * b
}
function eval(p)
@nponeccop
nponeccop / Main.hs
Created April 21, 2016 01:26
swizard task through Makefile generation
{-# LANGUAGE TypeFamilies, DeriveFunctor, OverloadedStrings, DeriveFoldable, FlexibleContexts #-}
module Main (main) where
import Prelude hiding (Foldable)
import qualified Prelude as P (Foldable)
import Data.Functor.Foldable
import Data.Foldable (toList)
import Language.Sexp
import Data.Maybe
data Op = Plus | Star | Minus deriving Show
@nponeccop
nponeccop / Bitcoinity.ipynb
Created March 21, 2016 22:02
Monthly transaction count in log scale
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nponeccop
nponeccop / bool_ind.lean
Last active March 17, 2016 16:24
Dependent induction principle for Church encoded booleans
namespace foo
definition bool := ∀ a : Type, a → a → a
definition tt : bool := λ (a : Type) (c d : a), c
definition ff : bool := λ (a : Type) (c d : a), d
definition bor (a b : bool) : bool := a bool tt b
definition boolProp := ∀ a : Prop, a → a → a
definition ind_on_T := ∀ P : bool → Prop, ∀ a : bool, P tt → P ff → P a
{-# LANGUAGE Rank2Types #-}
module Main where
-- data Cont r a = Cont { runCont :: (a -> r) -> r }
import Control.Monad.Cont
calculateLength :: [a] -> Cont r Int
calculateLength l = return (length l)
type ContS r a = (a -> r) -> r
@nponeccop
nponeccop / DevCfg.xml
Last active December 4, 2017 17:52
Huawei HG532e TR-064
<?xml version="1.0"?>
<scpd xmlns="urn:schemas-upnp-org:service-1-0">
<specVersion>
<major>1</major>
<minor>0</minor>
</specVersion>
<actionList>
<action>
<name>GetPersistentData</name>
<argumentList>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.