This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#target illustrator | |
#targetengine main | |
var NS = 'FOO'; | |
var TITLE = 'Test'; | |
var doc = app.activeDocument; // Just to show that this can be here ... | |
// BridgeTalk message: | |
var btm = function(fun_name, parameters) { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* https://gist.github.com/mhulse/87725fa670412f379980 | |
*/ | |
(function(document) { | |
'use strict'; | |
var i; | |
var $videos = document.querySelectorAll('.simple-video-controler'); | |
var l = $videos.length; | |
var setup = function($video) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
navigator.os = (function(navigator) { | |
'use strict'; | |
var os = ''; | |
var i; | |
var l; | |
var map1 = ['win', 'mac', 'x11', 'linux']; | |
var map2 = ['Windows', 'Mac', 'Unix', 'Linux']; | |
for (i = 0, l = map1.length; i < l; i++) { | |
if (navigator.appVersion.toLowerCase().indexOf(map1[i]) != -1) { | |
os = map2[i]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ##### BEGIN GPL LICENSE BLOCK ##### | |
# | |
# This program is free software; you can redistribute it and/or | |
# modify it under the terms of the GNU General Public License | |
# as published by the Free Software Foundation; either version 2 | |
# of the License, or (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://gist.github.com/mhulse/dbc517203ceddda2f675 | |
package com.ieqtech { | |
import flash.display.*; | |
import flash.events.*; | |
// http://stackoverflow.com/a/13318889/922323 | |
public final class Singleton extends MovieClip { | |
private static var _instance:Singleton; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[data-slides] { | |
background-image: url(../../uploads/banner1.jpg); /* Default image. */ | |
background-repeat: no-repeat; | |
background-position: center top; | |
background-size: cover; | |
transition: background-image 1s linear; | |
} | |
/* Use additional CSS to control the `height` of `[data-slides]`, like so: */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! not-online | https://gist.github.com/mhulse/ce208d2c64f1ce160a6a */ | |
;(function(document, navigator) { | |
!navigator.onLine && (document.documentElement.className = document.documentElement.className.replace(/\bonline\b/, 'not-online')); | |
}(document, navigator)); | |
/*! not-online uglified | https://gist.github.com/mhulse/ce208d2c64f1ce160a6a */!function(document,navigator){!navigator.onLine&&(document.documentElement.className=document.documentElement.className.replace(/\bonline\b/,"not-online"))}(document,navigator); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.visible-android { | |
display:none; | |
} | |
.visible-ios { | |
display:none; | |
} | |
.on-device .visible-android, .on-device .visible-android { | |
display:inherit; | |
} | |
.device-ios .visible-android { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create the plugin: | |
window.jQuery.fn.autosize = function() { | |
return autosize(this); | |
}; | |
// Use the plugin: | |
jQuery(function($){ | |
$('textarea').autosize(); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://tomcat.apache.org/tomcat-7.0-doc/proxy-howto.html | |
# https://gerrydevstory.com/2013/06/29/tomcat-apache-reverse-proxy/ | |
# http://www.latko.org/2009/02/12/installing-tomcat-60x-behind-apache-22x/ | |
# http://stackoverflow.com/a/20584597/922323 | |
# https://raajasoft.wordpress.com/2011/11/27/to-shorten-the-tomcat-application-url/ | |
# http://www.christianroessler.net/tech/2012/apache-vhost-proxy-and-static-files.html | |
# http://sysadminnotebook.blogspot.com/2011/08/apache-reverse-proxy-of-virtual-hosts.html | |
# http://stackoverflow.com/a/8823415/922323 | |
<VirtualHost *:80> | |
ServerName tomcat.local |