Skip to content

Instantly share code, notes, and snippets.

🖐
👁❤️open source software …

Michael Hulse mhulse

🖐
👁❤️open source software …
Block or report user

Report or block mhulse

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
@mhulse
mhulse / styles.less
Last active Jan 17, 2017
My latest Atom style sheet ...
View styles.less
.indent-guide-improved {
background-color: fade(white, 5%);
&.indent-guide-stack {
background-color: fade(cyan, 20%);
&.indent-guide-active {
background-color: fade(yellow, 20%);
}
}
}
@mhulse
mhulse / icml.bash
Created Aug 5, 2016
Bash script to convert .epub (x)HTML into .icml files; used to get ebooks into Indesign. http://indesignsecrets.com/ebook-production-backwards-from-epub-to-indesign.php
View icml.bash
#!/usr/bin/env bash
function init() {
dlxsl && transform
}
function dlxsl() {
@mhulse
mhulse / javascript-plugin-patterns-FOUND-protoytpe-newed.js
Last active Jun 28, 2019
Some of my favorite JavaScript plugin design patterns: The Facade Pattern, The Revealing Module Pattern, Immediately-invoked Function Expressions (IIFE)s, The Module Pattern imports and exports
View javascript-plugin-patterns-FOUND-protoytpe-newed.js
// http://callmenick.com/post/slide-and-push-menus-with-css3-transitions
(function(window) {
'use strict';
/**
* Extend Object helper function.
*/
function extend(a, b) {
@mhulse
mhulse / test.bash
Created Jun 24, 2016
Testing some shit.
View test.bash
#!/usr/bin/env bash
open -b com.adobe.illustrator /Users/mhulse/github/mhulse/test/test.jsx
echo 'Done!'
exit 0
@mhulse
mhulse / test.jsx
Last active Jun 24, 2016
Opening JSX file using PHP’s exec() and Adobe Illustrator’s bundle identifier …
View test.jsx
#target illustrator
alert('OMG');
@mhulse
mhulse / test.html
Last active Jun 14, 2016
Experimenting with CSS layout stuff. Inspired by "Laziness in the Time of Responsive Design by Ethan Marcotte" https://vimeo.com/165061923#t=1076s | This is a work in progress: NONE OF THIS CODE IS FUNCTIONAL (yet)!
View test.html
<div class="row">
<div class="col" style="min-height: 100px; background: #ccc"></div>
<div class="col" style="min-height: 100px; background: #ccc"></div>
<div class="col" style="min-height: 100px; background: #ccc"></div>
<div class="col" style="min-height: 100px; background: #ccc"></div>
<div class="col" style="min-height: 100px; background: #ccc"></div>
<div class="col" style="min-height: 100px; background: #ccc"></div>
<div class="col" style="min-height: 100px; background: #ccc"></div>
<div class="col" style="min-height: 100px; background: #ccc"></div>
@mhulse
mhulse / shprite
Last active Jun 13, 2016
Simple bash command line script to make sprite textures for video games.
View shprite
#!/usr/bin/env bash
function init() {
clear
# Display instructions:
echo -e "\033[1mSIMPLE SPRITE SHEET CREATION SCRIPT\033[0m"
echo "-----------------------------------"
echo "1. Navigate to the folder that contains your tile images."
@mhulse
mhulse / bridgeTalkExample.jsx
Created Jun 11, 2016
Another Adobe Illustrator BridgeTalk boilerplate example.
View bridgeTalkExample.jsx
/* jshint laxbreak:true, -W043 */
/* globals app, $, BridgeTalk */
// jshint ignore:start
#target illustrator
#targetengine main
// jshint ignore:end
var TEST = (function($application, $helper, undefined) {
@mhulse
mhulse / graphic_to_text.jsx
Last active Jun 11, 2016
Illustrator convert images into strings for embedding in scripts (copied from ScriptUI for dummies: http://www.kahrel.plus.com/indesign/scriptui.html), page 122.
View graphic_to_text.jsx
function graphic_to_text(infiles) { // Array of file objects.
var outfile,
s,
re1 = /^\(new String\(/,
re2 = /\)\)$/;
for (var i = 0; i < infiles.length; i++) {
if (infiles[i].exists) {
outfile = File (infiles[i].fullName.replace (/\.(png|idrc)$/, '.txt'));
outfile.open ('w');
infiles[i].encoding = 'BINARY';
@mhulse
mhulse / Install Blender Plugins.command
Created Jun 9, 2016
MakeHuman installation bash script
View Install Blender Plugins.command
#!/bin/bash
# Ensure we are working from the same directory this script is in
cd "$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
clear
export BLENDER_CONFIG_DIR=~/Library/Application\ Support/Blender
export CURRENT_WORKING_DIRECTORY=$(pwd)
export BLENDER_PLUGINS_DIR=$CURRENT_WORKING_DIRECTORY/Blender\ Plugins
You can’t perform that action at this time.