Skip to content

Instantly share code, notes, and snippets.

View jbenner-radham's full-sized avatar

James Benner jbenner-radham

View GitHub Profile
@jbenner-radham
jbenner-radham / Makefile
Last active February 23, 2016 01:54 — forked from isaacs/Makefile
# Hello, and welcome to makefile basics.
#
# You will learn why `make` is so great, and why, despite its "weird" syntax,
# it is actually a highly expressive, efficient, and powerful way to build
# programs.
#
# Once you're done here, go to
# http://www.gnu.org/software/make/manual/make.html
# to learn SOOOO much more.
@jbenner-radham
jbenner-radham / rfc1123_gmt_timestamp.3.html
Last active August 29, 2015 14:19
Draft for my "rfc1123_gmt_timestamp.mandoc_mdoc.3" man page.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<style>
table.head, table.foot { width: 100%; }
td.head-rtitle, td.foot-os { text-align: right; }
td.head-vol { text-align: center; }
table.foot td { width: 50%; }
table.head td { width: 33%; }
@jbenner-radham
jbenner-radham / poem.html
Last active August 29, 2015 14:22 — forked from elmimmo/poem.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Styling a poem</title>
<style type="text/css">
/* Left-aligned text in a centered block (mangles text in Adobe Digital Editions 1.7, so search an alternative if you need to support it) */
.poem {
display: table;
margin-right: auto;
@jbenner-radham
jbenner-radham / catherine.jsonld
Created May 30, 2015 00:21
A JSON-LD representation of Atlus' Catherine video game.
{
"@context": "http://schema.org",
"@type": "VideoGame",
"name": "Catherine",
"url": "http://catherinethegame.com/",
"image": [
"http://static.giantbomb.com/uploads/scale_super/0/3661/1721949-catherine.jpg",
"http://static.giantbomb.com/uploads/scale_super/0/3661/1721948-catherine_ps3.jpg"
],
"description": "Catherine (キャサリン Kyasarin) is a puzzle-platformer adventure video game developed and published by Atlus for PlayStation 3 and Xbox 360. It was Atlus' first internally developed game for the seventh-generation of consoles, and was described as an \"adult-oriented\" title by the game's character designer, Shigenori Soejima. The game was released in Japan on February 17, 2011, and in North America on July 26, 2011, in Europe on February 10, 2012, and in Australia on February 23, 2012. Catherine was later released as a full downloadable game for the PlayStation Store in February 2012, and was also released on the Games on Demand service for Xbox 360 in April 2012.",
@jbenner-radham
jbenner-radham / catherine.h-product.html
Last active December 11, 2017 15:08
A Microformats representation of the Catherine video game
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<style>
@import url(http://fonts.googleapis.com/css?family=Roboto:400,500,700,300,100,100italic,300italic,400italic,500italic,700italic,900,900italic);
body {
font-family: 'Roboto', sans-serif;
font-weight: 300;
line-height: 1.25em;
; This is a snippet of the original file in https://github.com/geyslan/SLAE/blob/master/1st.assignment/shell_bind_tcp.asm
global _start
section .text
_start:
; syscalls (/usr/include/asm/unistd_32.h)
; socketcall numbers (/usr/include/linux/net.h)
@jbenner-radham
jbenner-radham / README.md
Last active August 29, 2015 14:24 — forked from gre/README.md

"Panzer Dragoon 1k" is a 2D remake of Panzer Dragoon in 1k of JavaScript for JS1K 2014 by @greweb

Goal

Use your Dragoon to prevent enemies from escaping.

How to play

#!/usr/bin/env sh
INSTALLED=$(npm -v)
LATEST=$(npm view npm dist-tags.latest)
if [[ $INSTALLED = $LATEST ]]; then
echo "npm is up to date. version: ${INSTALLED}"
else
echo "npm version installed: ${INSTALLED}; latest: ${LATEST}"
npm -g install npm@latest
#!/usr/bin/env sh
i=0;
for pkg in $(pip3 list)
do
i=$((i + 1));
if [[ ! $((i % 2)) -eq 0 ]]
then

Option 1: Command-line download extension as zip and extract

extension_id=jifpbeccnghkjeaalbbjmodiffmgedin   # change this ID
curl -L -o "$extension_id.zip" "https://clients2.google.com/service/update2/crx?response=redirect&os=mac&arch=x86-64&nacl_arch=x86-64&prod=chromecrx&prodchannel=unknown&prodversion=44.0.2403.130&x=id%3D$extension_id%26uc" 
unzip -d "$extension_id-source" "$extension_id.zip"

Thx to crxviewer for the magic download URL.