Skip to content

Instantly share code, notes, and snippets.

Frank Anderson frob

Block or report user

Report or block frob

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@frob
frob / Makefile
Last active Feb 18, 2019 — forked from rcmachado/Makefile
Add a help target to a Makefile that will allow all targets to be self documenting
View Makefile
.SILENT:
.PHONY: help
# Based on https://gist.github.com/prwhite/8168133#comment-1313022
## Print this help screen.
help:
printf "Available targets\n\n"
awk '/^[a-zA-Z\-\_0-9]+:/ { \
helpMessage = match(lastLine, /^## (.*)/); \
@frob
frob / gist:66f13be5b8789ed8a61c2c1083fd51d6
Last active Mar 8, 2018 — forked from amandavisconti/gist:e909e41e6896d2a90de8
Setting up Annotator.js annotation on Drupal
View gist:66f13be5b8789ed8a61c2c1083fd51d6

Annotator.js works on Drupal as two modules and a library (installed, as usual, under /sites/all):

    /modules/annotator
    /modules/annotation
    /libraries/annotator

The files in libraries/annotator are the latest from the Annotator.js repo (https://github.com/openannotation/annotator/releases). Although the modules Infinite Ulysses uses have been significantly changed from the modules you could download on Drupal.org, the Drupal.org Annotator (https://www.drupal.org/project/annotator) and Annotation (https://www.drupal.org/project/annotation) modules pages might still have useful info if you're troubleshooting.

@frob
frob / templates.json
Last active Mar 7, 2018
custom list of ask templates
View templates.json
{
"Decision Tree": {
"gitUrl": "https://github.com/alexa/skill-sample-nodejs-decision-tree.git"
},
"City Guide": {
"gitUrl": "https://github.com/alexa/skill-sample-nodejs-city-guide.git"
},
"Trivia": {
"gitUrl": "https://github.com/alexa/skill-sample-nodejs-trivia.git"
},
View karabiner-import.sh
#!/bin/sh
cli=/Applications/Karabiner.app/Contents/Library/bin/karabiner
$cli set remap.pclikehomeend_emacs 1
/bin/echo -n .
$cli set remap.pclikepageupdown_except_emacs 1
/bin/echo -n .
/bin/echo
View gist:93f3a62db1320f9c3bfe5e65db13b4ed
07:58 $ vagrant up
Bringing machine 'oen-ode.local' up with 'virtualbox' provider...
==> oen-ode.local: Importing base box 'geerlingguy/centos7'...
==> oen-ode.local: Matching MAC address for NAT networking...
==> oen-ode.local: Checking if box 'geerlingguy/centos7' is up to date...
==> oen-ode.local: Setting the name of the VM: oen-ode.local
==> oen-ode.local: Clearing any previously set network interfaces...
==> oen-ode.local: Preparing network interfaces based on configuration...
oen-ode.local: Adapter 1: nat
oen-ode.local: Adapter 2: hostonly
@frob
frob / ansi-color.php
Created Feb 13, 2017 — forked from s4553711/ansi-color.php
ANSI color terminal output module for php
View ansi-color.php
<?php
/**
* php-ansi-color
*
* Original
* https://github.com/loopj/commonjs-ansi-color
*
* @code
* <?php
* require_once "ansi-color.php";
View settings.local.php
<?php
$database_suffix = '';
if (git_command_exists('git') && $git_describe = settings_execute_os_command('git rev-parse --abbrev-ref HEAD') ) {
if (trim($git_describe) == 'HEAD') {
$git_describe = settings_execute_os_command('git describe --all');
}
// Execute "git describe --all" and get the last part of heads/* as
// the tag/branch.
if (empty($git_describe)) {
View rr_shortnames.json
[
{
"boys": [
"Adam",
"Alan",
"Aldo",
"Alex",
"Andy",
"Ari",
"Ben",
@frob
frob / table.css
Created Jul 13, 2016
table layout fixed
View table.css
table{table-layout:fixed;width:100%;}
tbody>tr>*:nth-last-child(2)~*{ width:50%}
tbody>tr>*:nth-last-child(3)~*{ width:33.3%}
tbody>tr>*:nth-last-child(4)~*{ width:25%}
View .eslintignore
core/assets/vendor/**/*
core/modules/locale/tests/locale_test.js
core/vendor/**/*
sites/**/files/**/*
libraries/**/*
sites/**/libraries/**/*
profiles/**/libraries/**/*
**/js_test_files/**/*
You can’t perform that action at this time.