Skip to content

Instantly share code, notes, and snippets.

View 6footgeek's full-sized avatar
🚀

Andy Barlow 6footgeek

🚀
View GitHub Profile
SET TL_PANEL=C:\
SET TR_PANEL=C:\
SET BL_PANEL=C:\
SET BR_PANEL=C:\
start ConEmu -cmdlist powerShell -cur_console:fn:d:%TL_PANEL% ^|^|^| powerShell -cur_console:s1TVnd:%BL_PANEL% ^|^|^| cmd -cur_console:s1THnd:%TR_PANEL% ^|^|^| powerShell -cur_console:s2THnd:%BR_PANEL%
@shamasis
shamasis / describe-it.js
Last active September 5, 2023 07:12
mocha/jasmine compatible test framework for postman test scripts (in less than 1KB minified)
/**
* @module describe-it
*
* This module defines global variables to provide unit test case runner functions compatible with mocha and jasmine.
* The codebase is written for brevity and facilitate being as lightweight as possible.
*
* The code is intended to be included in Postman Test Sandbox.
*/
/**
@6footgeek
6footgeek / CSS fullscreen image background on any device.css
Last active May 24, 2016 08:41
CSS fullscreen image background on any device
html{
height:100%;
width:100%;
background: url(images/bg.jpg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
@6footgeek
6footgeek / simple Java swing GUI
Created February 8, 2015 18:48
really simple Java GUI using swing boilerplate
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public class simpleGUI extends JFrame implements ActionListener {
private static final long serialVersionUID = 1L;
@kracekumar
kracekumar / Writing better python code.md
Last active February 19, 2024 03:06
Talk I gave at June bangpypers meetup.

Writing better python code


Swapping variables

Bad code

@lukencode
lukencode / widget.js
Last active December 7, 2021 19:16
Starter template for creating jsonp embeddable widgets.
(function () {
var scriptName = "embed.js"; //name of this script, used to get reference to own tag
var jQuery; //noconflict reference to jquery
var jqueryPath = "http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js";
var jqueryVersion = "1.8.3";
var scriptTag; //reference to the html script tag
/******** Get reference to self (scriptTag) *********/
var allScripts = document.getElementsByTagName('script');