Skip to content

Instantly share code, notes, and snippets.

@Composable
fun scroll2d() {
val offset = remember { Animatable(Offset(0f, 0f), Offset.VectorConverter) }
Box(
modifier = modifier
.pointerInput(Unit) {
coroutineScope {
while (true) {
val pointerId = awaitPointerEventScope {
awaitFirstDown().id
0x039aADE89a264ad0C9265d0fEC2f025D646d756E
[
{
"title": "The Fate of the Furious",
"originalTitle": "",
"year": "2017",
"releaseDate": "20170414",
"directors": [
{
"name": "F. Gary Gray",
"id": "nm0336620"

Keybase proof

I hereby claim:

  • I am drampelt on github.
  • I am drampelt (https://keybase.io/drampelt) on keybase.
  • I have a public key ASBCkRl4g6_wRt_hu-mG5vmiE66OERAbx0JnuNOE7jEdBAo

To claim this, I am signing this object:

@drampelt
drampelt / gist:3325695
Created August 11, 2012 16:53 — forked from conoro/gist:3130631
Working Node.js on Raspberry Pi
These instructions work for the Raspberry Pi running Raspbian (hard float), and include a working NPM:
1. Install Raspbian - http://www.raspbian.org/PiscesImages
2. sudo apt-get install git-core build-essential
3. Check out Node.js source (0.8.2)
4. Apply patch available at https://github.com/gflarity/node_pi (ignore most of the instructions)
5. Set up some variables:
$ export GYP_DEFINES="armv7=0"
$ export CXXFLAGS='-march=armv6 -mfpu=vfp -mfloat-abi=hard -DUSE_EABI_HARDFLOAT'
var chars = {
0: 48, 1: 49, 2: 50,3: 51,4: 52,5: 53,6: 54,7: 55,8: 56,9: 57,10: 65,
11: 66, 12: 67, 13: 68,14: 69,15: 70,16: 71,17: 72,18: 73,19: 74,20: 75,
21: 76, 22: 77, 23: 78,24: 79,25: 80,26: 81,27: 82,28: 83,29: 84,30: 85,
31: 86, 32: 87, 33: 88,34: 89,35: 90,36: 97,37: 98,38: 99,39: 100,40: 101,
41: 102, 42: 103, 43: 104,44: 105,45: 106,46: 107,47: 108,48: 109,49: 110,
50: 111, 51: 112, 52: 113,53: 114,54: 115,55: 116,56: 117,57: 118,58: 119,
59: 120, 60: 121, 61: 122
}, golden_primes = [
1, 41, 2377, 147299, 9132313, 566201239, 35104476161, 2176477521929
@drampelt
drampelt / chat.js
Created May 7, 2012 19:59
socket.io chat
var http = require('http'),
sys = require('util'),
fs = require('fs'),
io = require('socket.io');
var server = http.createServer(function(request, response) {
response.writeHead(200, {
'Content-Type': 'text/html'
});