Skip to content

Instantly share code, notes, and snippets.

Avatar
🐬
it's a dAmN cOld NiGhT tryin 2 figure out this life

Jasper St. Pierre magcius

🐬
it's a dAmN cOld NiGhT tryin 2 figure out this life
View GitHub Profile
View nv21c.c
#include <assert.h>
#include <fcntl.h>
#include <string.h>
#include <stdint.h>
#include <stdio.h>
#include <unistd.h>
#define w 1920
#define h 1080
View abort.c
/*_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
*+ Status
*
* Copyright(C) 2010 SUZAK Inc. All Rights Reserved.
*
* project name:アボート制御
* source name:src/Abort.c
* data model:ILP32
* make:uno
View refcount.py
class Foo(object):
def __init__(self, what):
self.what = what
def butts(self):
def inner_butts(self, t):
if t == 0:
return self.what
else:
View -
--- hexagon-broken.html 2015-11-03 16:29:36.873741732 -0800
+++ hexagon-working.html 2015-11-03 16:31:31.897167298 -0800
@@ -3,7 +3,7 @@
<th colspan="2" style="text-align:center;font-size:125%;font-weight:bold;background:#e7dcc3;">Regular hexagon</th>
</tr>
<tr>
-<td colspan="2" style="text-align:center"><a href="https://upload.wikimedia.org/wikipedia/commons/thumb/3/38/Regular_polygon_6_annotated.svg/220px-Regular_polygon_6_annotated.svg.png" class="image" data-soma-widget="ImageLink"><img alt="Regular polygon 6 annotated.svg" src="https://upload.wikimedia.org/wikipedia/commons/thumb/3/38/Regular_polygon_6_annotated.svg/220px-Regular_polygon_6_annotated.svg.png" width="220" height="225" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/3/38/Regular_polygon_6_annotated.svg/330px-Regular_polygon_6_annotated.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/3/38/Regular_polygon_6_annotated.svg/440px-Regular_polygon_6_annotated.svg.png 2x" data-file-width="503" data-file-height="515" data-soma
View -
From 80a843db21ecda9666cd8fb18a185517fbf7ebaf Mon Sep 17 00:00:00 2001
From: "Jasper St. Pierre" <jstpierre@mecheye.net>
Date: Wed, 30 Sep 2015 15:04:33 -0700
Subject: [PATCH] drm/meson: Add back 1x scaling modes
---
drivers/gpu/drm/meson/meson_cvbs.c | 25 +++++++++++++++++++------
drivers/gpu/drm/meson/meson_cvbs.h | 3 ++-
drivers/gpu/drm/meson/meson_drv.c | 32 ++++++++++++++++++++------------
drivers/gpu/drm/meson/meson_modes.c | 5 +++++
View -
From c47f6ccd7b5cf1d5bc51ef7bc40af016f2524ccb Mon Sep 17 00:00:00 2001
From: "Jasper St. Pierre" <jstpierre@mecheye.net>
Date: Wed, 30 Sep 2015 15:04:33 -0700
Subject: [PATCH] drm/meson: Add back 1x scaling modes
---
drivers/gpu/drm/meson/meson_modes.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/gpu/drm/meson/meson_modes.c b/drivers/gpu/drm/meson/meson_modes.c
View gist:bbfd556678bfee0eb7c5
{ "signal": 11
, "executable": "/usr/bin/gnome-shell"
, "stacktrace":
[ { "crash_thread": true
, "frames":
[ { "address": 140241361525213
, "build_id": "434a1d6b77cfd6bb9f16e227b78203dad5fb67fb"
, "build_id_offset": 1022429
, "function_name": "poll"
, "file_name": "/lib64/libc.so.6"
View mallard-Python-class.tmpl
{% for class_ in formatter.get_class_hierarchy(node) %}
<item>
<code>{{ class_.namespace.name }}.{{ class_.name }</code>
{% endfor %}
{% for class_ in formatter.get_class_hierarchy(node) %}
</item>
{% endfor %}
View dbus.js
var BYTE_LENGTHS = {
'y': 1,
'n': 2,
'q': 2,
'i': 4,
'u': 4,
'h': 4,
'x': 8,
't': 8,
View xibarriers.c
static BOOL
inside_segment(int v, int v1, int v2)
{
if (v1 < 0 && v2 < 0) /* line */
return TRUE;
else if (v1 < 0) /* ray */
return v <= v2;
else if (v2 < 0) /* ray */
return v >= v1;
else /* line segment */
You can’t perform that action at this time.