Skip to content

Instantly share code, notes, and snippets.

View SeanJA's full-sized avatar
🦑
🦖

SeanJA SeanJA

🦑
🦖
View GitHub Profile
version: '3'
tasks:
up:
desc: "Start up all of the containers"
aliases: [u, start]
cmds:
- cmd: docker-compose up -d
stop:
desc: "Stop all of the containers"
{
"level101":[
{
"lvl101_name": "Network_Basics",
"lvl101_type": "Online",
"lvl101_duration": 720
},
{
"lvl101_name": "Intro_To_Software",
"lvl101_type": "On-Site",
<?php
$i = 1;
goto three;
sixteen:
three:
while(true){
goto nine;
}
@SeanJA
SeanJA / gist:7092884
Created October 21, 2013 23:51
from view-source:https://www.healthcare.gov/ lines 1538 - 1551
// What?
if ('en' == 'es') {
langCode = 'es_MX';
var url = window.location.href.replace('cuidadodesalud.gov','healthcare.gov').replace('/es/','/');
$('.span1 a.btn-mini.btn-lang, #header .lang').removeClass('nodisplay').attr('href', url);
}
// What what?
if ('en' == 'en') {
langCode = 'en_US';
if (''.length > 0) {
@SeanJA
SeanJA / form-check.js
Created August 22, 2013 03:19
check if you are connected and you don't have a dead battery.
$('.my-form').submit(function(){
var battery = window.navigator.battery.level <= 0.05;
var connectivity = window.navigator.onLine;
var msg = '';
if(!battery){
msg = "you should probably plug in your computer";
}
if(!battery && !connectivity){
msg += ", "
}
script {
display: block;
-webkit-animation-name: blink;
-webkit-animation-iteration-count: infinite;
-webkit-animation-timing-function: cubic-bezier(1.0,0,0,1.0);
-webkit-animation-duration: 1s;
animation-name: blink;
animation-iteration-count: infinite;
animation-timing-function: cubic-bezier(1.0,0,0,1.0);
animation-duration: 1s;
@SeanJA
SeanJA / mosaic.class.php
Last active December 14, 2015 14:09
Mosaic image take 2
<?php
class mosaic {
/**
*
* @var int
*/
private $increment = 0;
/**
*
<?php
$url = 'horse-meat.jpg';
/**
* Turn an image into a mosaic
* @param string $url Path to the image
* @param int $sharpness Sample every x pixels. The td outputs will be x pixels high and wide
* @param boolean $use_rgba Use rgba instead of hex (probably won't work for a lot of email providers)
* @return string The table that will replicate the image
*/
function mosaic($url, $sharpness = 5, $use_rgba = false) {
@SeanJA
SeanJA / README.md
Last active October 21, 2016 07:40
Google Pageviews

Set Up

You will need Sija's version of the garb gem, so add this line to your Gemfile (you will need git installed for this):

gem 'garb', :git => 'git://github.com/Sija/garb.git'

Then run the gem bundler: bundle install

Set your google username

@SeanJA
SeanJA / corrupted.zip
Last active December 12, 2015 06:59
Test a zip archive from php
this zip file is not a zip file