Skip to content

Instantly share code, notes, and snippets.

Steve Jabour atsjj

View GitHub Profile
@atsjj
atsjj / compact.hbs
Last active Apr 17, 2020
auto-changelog-templates
View compact.hbs
{{#each releases}}
{{#if @first}}
{{#each merges}}
* ({{id}}) {{{message}}}
{{/each}}
{{#each fixes}}
* {{{commit.subject}}}{{#each fixes}} ({{id}}){{/each}}
{{/each}}
{{#each commits}}
* ({{shorthash}}) {{#if breaking}}**Breaking change:** {{/if}}{{{subject}}}
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Center text in SVG rect -- horz and vert</title>
</head>
<body>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1140 400">
<defs>
<style>
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Center text in SVG rect -- horz and vert</title>
</head>
<body>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1140 400">
<defs>
<style>
View launch.json
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Launch File",
"protocol": "inspector",
"request": "launch",
View components.my-component.js
import Ember from 'ember';
export default Ember.Component.extend({
classNameBindings: ['isVisible:show']
});
View ember-cli-build.js
/* global require, module */
var EmberApp = require('ember-cli/lib/broccoli/ember-app');
module.exports = function(defaults) {
var app = new EmberApp(defaults, {
'ember-cli-foundation-sass': {
'modernizr': true,
'fastclick': true,
'foundationJs': 'all'
}
View ent-analysis.txt
» ent halos.raw
Entropy = 7.428127 bits per byte.
Optimum compression would reduce the size
of this 376 byte file by 7 percent.
Chi square distribution for 376 samples is 254.47, and randomly
would exceed this value 49.76 percent of the times.
Arithmetic mean value of data bytes is 115.1941 (127.5 = random).
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
<canvas id='c'></canvas>
<script type="text/javascript">
document.addEventListener('DOMContentLoaded', function() {
var canvas = document.getElementById('c');
canvas.width = canvas.height = 465;
var context = canvas.getContext('2d');
@atsjj
atsjj / ruby-2.0.0-p247-readline.patch
Created Jun 5, 2014
ruby 2.0.0-p247 readline patch
View ruby-2.0.0-p247-readline.patch
From 6191e5efbf3a5c7cfa6b29b679270d5a0e2ad9d4 Mon Sep 17 00:00:00 2001
From: Steve Jabour <steve@jabour.me>
Date: Thu, 5 Jun 2014 16:02:49 -0600
Subject: [PATCH 1/1] ruby 2.0.0-p247 readline patch
---
ext/readline/extconf.rb | 9 +++++++++
ext/readline/readline.c | 2 +-
2 files changed, 10 insertions(+), 1 deletion(-)
@atsjj
atsjj / dopewars.rb
Created Sep 5, 2013
Homebrew Formula for Dopewars 1.5.12
View dopewars.rb
require 'formula'
class Dopewars < Formula
homepage 'http://dopewars.sourceforge.net/'
url 'http://downloads.sourceforge.net/project/dopewars/dopewars/1.5.12/dopewars-1.5.12.tar.gz'
sha1 'ad46a38e225680e591b078eeec563d47b96684bc'
depends_on 'gettext' => :build
depends_on 'glib' => :build
depends_on 'gtk+' => :build
You can’t perform that action at this time.