Skip to content

Instantly share code, notes, and snippets.

@dropdeaddd
dropdeaddd / Acer Aspire Switch 10 Ubuntu
Created July 20, 2015 02:09
Acer Aspire Switch 10 Ubuntu
#Ubuntu on Acer Aspire Switch
##The problem
**What's the problem with this tablet? Why can't I just insert the USB and mash F12 until it boots?**
The tablet is made to run Windows 8 and Windows 8 only. Because of the stupidity that is UEFI (specifically Safe boot) we can't just boot from any USB stick we want.
##Requirements
Before you start, there's a few things you need:
- USB stick (at least 4GB)
- USB OTG adapter
- [Rufus](https://rufus.akeo.ie/)
@dropdeaddd
dropdeaddd / arc.py
Created July 20, 2015 02:07 — forked from pior/arc.py
Adaptive replacement cache implementation in Python
"""
ARC implementation
Based on
http://code.activestate.com/recipes/576532-adaptive-replacement-cache-in-python/
Original Paper
https://www.usenix.org/legacy/events/fast03/tech/full_papers/megiddo/megiddo.pdf
Warning: patented by IBM
@dropdeaddd
dropdeaddd / config.json
Created July 20, 2015 02:07 — forked from anonymous/config.json
Bootstrap Customizer Config
{
"vars": {
"@gray-base": "#000",
"@gray-darker": "lighten(@gray-base, 13.5%)",
"@gray-dark": "lighten(@gray-base, 20%)",
"@gray": "lighten(@gray-base, 33.5%)",
"@gray-light": "lighten(@gray-base, 46.7%)",
"@gray-lighter": "lighten(@gray-base, 93.5%)",
"@brand-primary": "darken(#428bca, 6.5%)",
"@brand-success": "#5cb85c",
@dropdeaddd
dropdeaddd / ordered.hs
Created July 16, 2015 00:06 — forked from jtobin/ordered.hs
longest ordered word in a dictionary
module Ordered where
import Data.Function (on)
import Data.List (sort, maximumBy)
longestOrdered :: Ord a => [[a]] -> Maybe [a]
longestOrdered dict = safeMaximumBy (compare `on` length)
[word | word <- dict, sort word == word]
safeMaximumBy :: (a -> a -> Ordering) -> [a] -> Maybe a
@dropdeaddd
dropdeaddd / keybase.md
Created July 16, 2015 00:06 — forked from paulmakepeace/keybase.md
keybase.io/paulmakepeace

Keybase proof

I hereby claim:

  • I am paulmakepeace on github.
  • I am paulmakepeace (https://keybase.io/paulmakepeace) on keybase.
  • I have a public key whose fingerprint is 9C72 A0C2 7681 3113 38A1 6C9F 670F 9FF3 4115 673C

To claim this, I am signing this object:

/*************
* colors.js *
*************
*
* You're almost at the exit. You just need to get past this
* color lock.
*
* Changing your environment is no longer enough. You must
* learn to change yourself. I've sent you a little something
* that should help with that.
@dropdeaddd
dropdeaddd / gist:18f371c09e63ef678cc2
Created July 16, 2015 00:05 — forked from anonymous/gist:19014d5a870955bbf81f
Warmfix to staging changes 7/15/15
Drew Bowman make the popup edit button display right 6b8453
Drew Bowman turn on open sesame for staging as demo ed3bce
@dropdeaddd
dropdeaddd / grid.edn
Created July 16, 2015 00:05 — forked from anonymous/grid.edn
shoelace grid
[[["Logo" [:sm nil 3]] ["game_info" [:sm nil 8]]] [[[:sm nil 8]] [[:sm nil 3]]] ["Comment_holder"]]

aligned_{alloc,free}

Add custom functions (for allocating/deallocating) in aligned_{alloc,free}:

here is how we've implemented in boost::simd.

Also, adding an aligned_realloc

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>