Skip to content

Instantly share code, notes, and snippets.

@frob
frob / emoji.php
Last active August 29, 2015 14:27 — forked from alanorth/emoji.php
Emoji class / function / variable names in PHP...
<?php
class 💩💩💩💩
{
function 💩💩💩($😎, $🐯)
{
return $😎 + $🐯;
}
}
$🐔 = 3;
@frob
frob / custom_drupal.js
Last active October 14, 2015 20:56
a custom js implementation for drupal
/**
* @file
* Custom JS for a Drupal Module.
*/
(function ($) {
"use strict";
Drupal.behaviors.custom_custom = {
attach: function (context, settings) {
// End of attach.
@frob
frob / .eslintignore
Created November 7, 2015 00:09
Drupal ESlint settings. Taken from https://www.drupal.org/node/1955232
core/assets/vendor/**/*
core/modules/locale/tests/locale_test.js
core/vendor/**/*
sites/**/files/**/*
libraries/**/*
sites/**/libraries/**/*
profiles/**/libraries/**/*
**/js_test_files/**/*
@frob
frob / table.css
Created July 13, 2016 17:45
table layout fixed
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%}
[
{
"boys": [
"Adam",
"Alan",
"Aldo",
"Alex",
"Andy",
"Ari",
"Ben",
@frob
frob / ansi-color.php
Created February 13, 2017 18:45 — forked from s4553711/ansi-color.php
ANSI color terminal output module for php
<?php
/**
* php-ansi-color
*
* Original
* https://github.com/loopj/commonjs-ansi-color
*
* @code
* <?php
* require_once "ansi-color.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)) {
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 / karabiner-import.sh
Created January 22, 2018 18:23
Karabiner Export
#!/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
@frob
frob / templates.json
Last active March 7, 2018 04:20
custom list of ask templates
{
"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"
},