Skip to content

Instantly share code, notes, and snippets.

View khamer's full-sized avatar

Kevin Hamer khamer

View GitHub Profile
<title>worst.PHP</title>
<body>
<script language="php">
isset($_REQUEST[user]) or $_POST[user] = null;
extract($_REQUEST);
if ($user):
eval("goto greeting");
else:
goto welcome_form;
@khamer
khamer / php.vim
Created March 16, 2016 20:20
.vim/indent/php.vim
" THIS IS MODIFIED, and IN PROGRESS. I'll make it more official when I'm ready.
"
" Vim indent file
" Language: Php
" Authors: Miles Lott <milos@groupwhere.org>, Johannes Zellner <johannes@zellner.org>, Pim Snel <pim@lingewoud.nl>
" URL: http://www.vim.org/scripts/script.php?script_id=604
" URL: http://lingewoud.nl/downloads.php
" Last Change: 23 feb 2004
" Version: 0.3
" Notes: This is a combination of the PHP indent file of Miles Lott with
@khamer
khamer / config
Created March 2, 2017 14:06
i3 config snippet with different examples of symbols for up to eight workspaces
## Roman Numerals
#set $ws1 1:Ⅰ
#set $ws2 2:Ⅱ
#set $ws3 3:Ⅲ
#set $ws4 4:Ⅳ
#set $ws5 5:Ⅴ
#set $ws6 6:Ⅵ
#set $ws7 7:Ⅶ
#set $ws8 8:Ⅷ
@khamer
khamer / testfile.php
Created August 18, 2017 23:30
useless test file
<?php
$foo = preg_replace('foo$1', "one two three four five {$six} seven eight nine ten", &$test);
$then = ["testing", "this", "out"];
?>
<div>
<span class="foobar-attributes <?= $test ?>">cheese</span>
</div>
<?php
$foo = preg_replace('foo$1', "one two three four five {$six} seven eight nine ten", &$test);
$then = ["testing", "this", "out"];
This file has been truncated, but you can view the full file.
["A ____ atom in an atomic clock beats 9,192,631,770 times a second", "cesium"]
["A ____ generates temperatures five times hotter than those found on the sun's surface", "lightning bolt"]
["A ____ is a pact between a secular authority & the church", "concordat"]
["A ____ is the blue field behind the stars", "canton"]
["A ____ occurs when all the planets of the our Solar System line up", "sysygy"]
["A ____ razor removed from King Tut's Tomb was still sharp enough to be used", "golden"]
["A ____ takes 33 hours to crawl one mile", "snail"]
["A ____ women can get a divorce if her husband doesn't give her coffee", "saudi arabian"]
["A ____ written to celebrate a wedding is called a epithalamium", "poem"]
["A 'dybbuk' is an evil spirit in which folklore", "jewish"]
This file has been truncated, but you can view the full file.
["A ____ atom in an atomic clock beats 9,192,631,770 times a second", "cesium"]
["A ____ generates temperatures five times hotter than those found on the sun's surface", "lightning bolt"]
["A ____ is a pact between a secular authority & the church", "concordat"]
["A ____ is the blue field behind the stars", "canton"]
["A ____ occurs when all the planets of the our Solar System line up", "sysygy"]
["A ____ razor removed from King Tut's Tomb was still sharp enough to be used", "golden"]
["A ____ takes 33 hours to crawl one mile", "snail"]
["A ____ women can get a divorce if her husband doesn't give her coffee", "saudi arabian"]
["A ____ written to celebrate a wedding is called a epithalamium", "poem"]
["A 'dybbuk' is an evil spirit in which folklore", "jewish"]
This file has been truncated, but you can view the full file.
["A ____ atom in an atomic clock beats 9,192,631,770 times a second", "cesium"]
["A ____ generates temperatures five times hotter than those found on the sun's surface", "lightning bolt"]
["A ____ is a pact between a secular authority & the church", "concordat"]
["A ____ is the blue field behind the stars", "canton"]
["A ____ occurs when all the planets of the our Solar System line up", "sysygy"]
["A ____ razor removed from King Tut's Tomb was still sharp enough to be used", "golden"]
["A ____ takes 33 hours to crawl one mile", "snail"]
["A ____ women can get a divorce if her husband doesn't give her coffee", "saudi arabian"]
["A ____ written to celebrate a wedding is called a epithalamium", "poem"]
["A 'dybbuk' is an evil spirit in which folklore", "jewish"]
@khamer
khamer / test
Created April 24, 2019 19:57
Just Testing
test
class Foobar {
foo (bar) {
console.log(bar)
}
}
(new Foobar()).foo('aha')
import Waypoint from 'waypoints/lib/noframework.waypoints.min.js'
const companySections = [...document.querySelectorAll('.js-company')]
const plumbbobWrapper = document.querySelector('.js-plumbbobWrapper')
// Useful Measurements
const pbInitTop = parseInt(
window.getComputedStyle(plumbbobWrapper).getPropertyValue('top'),
0
)