Skip to content

Instantly share code, notes, and snippets.

/*
Copyright Alex Leone, David Nufer, David Truong, 2011-03-11. kathack.com
javascript:var i,s,ss=['http://kathack.com/js/kh.js','http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js'];for(i=0;i!=ss.length;i++){s=document.createElement('script');s.src=ss[i];document.body.appendChild(s);}void(0);
*/
var BORDER_STYLE = "1px solid #bbb",
CSS_TRANSFORM = null,
CSS_TRANSFORM_ORIGIN = null,
POSSIBLE_TRANSFORM_PREFIXES = ['-webkit-', '-moz-', '-o-', '-ms-', ''],
@jfmherokiller
jfmherokiller / i7.pl
Last active February 25, 2018 17:38
i7 script for inform7
#!/usr/bin/perl
#
use integer;
use Cwd qw(getcwd abs_path);
use Getopt::Std;
use File::Basename;
use File::Find;
$Getopt::Std::STANDARD_HELP_VERSION=1;
$idesettings{'PREFIX'}="/usr/local";
@jfmherokiller
jfmherokiller / Scrollbar.as
Created February 6, 2018 18:44
currentScrollbar CoC
/**
* ScrollBar.as
* Keith Peters
* version 0.9.10
*
* Base class for HScrollBar and VScrollBar
*
* Copyright (c) 2011 Keith Peters
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
@jfmherokiller
jfmherokiller / throwme.js
Last active December 19, 2017 06:59
throwable Discord Emojis
/*
* throwable
* JQuery plugin
*/
/**------------------------------------**/
// CREDITS
/**------------------------------------**/
/*
- Mr. Doobs :: http://mrdoob.com/92/Google_Gravity
class Steem < Formula
desc "Proof of Work blockchain with an unproven consensus algorithm."
homepage "https://steemit.com/"
url "https://github.com/steemit/steem.git",
:tag => "v0.19.0"
depends_on :macos => [:yosemite, :el_capitan, :sierra]
depends_on "cmake" => :build
depends_on "autoconf" => :build
@jfmherokiller
jfmherokiller / userscript.js
Last active September 28, 2017 14:14
fa material hack
var jq = document.createElement('script');
jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
(function defer() {
if (window.jQuery) {
@jfmherokiller
jfmherokiller / compile_commands.json
Created September 27, 2017 16:04
build ear arguments example
[
{
"arguments": [
"c++",
"-c",
"-DHAVE_CONFIG_H",
"-I.",
"-I../..",
"-Wall",
"-fno-strict-overflow",
@jfmherokiller
jfmherokiller / ipfs-git-rehost.ps1
Created July 6, 2017 03:48
ipfs git rehost script powershell edition
Param(
[Bool]$unpack = $false,
[string]$existing = "",
[Parameter(Mandatory=$true,ValueFromPipeline=$true)][string]$GitRepo,
[string]$name = ""
)
function New-TemporaryDirectory {
$parent = [System.IO.Path]::GetTempPath()
[string] $name = [System.Guid]::NewGuid()
Param(
[Parameter(Mandatory=$true,ValueFromPipeline=$true)]
[string]$URL
)
$tempfile = New-TemporaryFile
& wget.exe -q --user-agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36" --output-document=$tempfile $URL
$filehash = (ipfs add --pin=false -Q "$tempfile")
@jfmherokiller
jfmherokiller / ipfscrape.ps1
Created May 30, 2017 04:06
ipfs-scrape powershell version
Param(
[string]$URL
)
$olddirectory = (Get-Item -Path ".\" -Verbose).FullName
function New-TemporaryDirectory {
$parent = [System.IO.Path]::GetTempPath()
[string] $name = [System.Guid]::NewGuid()