This file contains 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
var supports3DTransforms = document.body.style['webkitPerspective'] !== undefined || | |
document.body.style['MozPerspective'] !== undefined; | |
function linkify( selector ) { | |
if( supports3DTransforms ) { | |
var nodes = document.querySelectorAll( selector ); | |
for( var i = 0, len = nodes.length; i < len; i++ ) { | |
var node = nodes[i]; |
This file contains 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
#!/bin/sh | |
echo "Clearing executable bit for iTunes binary" | |
sudo chmod ugo-x /Applications/iTunes.app/Contents/MacOS |
This file contains 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
import Foundation | |
protocol AssociatedValueType: class {} | |
extension AssociatedValueType { | |
var associatedDictionary: AssociatedDictionary { | |
return AssociatedDictionary.associatedDictionary(for: self) | |
} | |
} |
This file contains 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
import Foundation | |
protocol AssociatedValueType: class {} | |
extension AssociatedValueType { | |
var associatedDictionary: AssociatedDictionary { | |
return AssociatedDictionary.associatedDictionary(for: self) | |
} | |
} |
This file contains 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
// ==UserScript== | |
// @name Swift-Evolution Email Formatting | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Formats the nested `>` indents of the mailing list into depth-marking lines | |
// @author TheCodeWarrior | |
// @match https://lists.swift.org/pipermail/swift-evolution/* | |
// @grant none | |
// @require https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js | |
// ==/UserScript== |
This file contains 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
extension UIVisualEffectView { | |
public var adjuster: UIVisualEffectViewAdjuster { | |
get { | |
if let adjuster = objc_getAssociatedObject( self, &UIVisualEffectViewAdjuster.key) as? UIVisualEffectViewAdjuster { | |
return adjuster | |
} else { | |
let adjuster = UIVisualEffectViewAdjuster(effectView: self) | |
objc_setAssociatedObject( self, &UIVisualEffectViewAdjuster.key, adjuster, .OBJC_ASSOCIATION_RETAIN) | |
return adjuster | |
} |
This file contains 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
#!/usr/bin/env ruby | |
require 'gruff' | |
require 'date' | |
require 'csv' | |
CALCULATE_PIXELS = true | |
DO_JUMP = false | |
MAX_PING = 500 |
This file contains 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
package thecodewarrior.soundcap; | |
import net.minecraftforge.common.config.Configuration; | |
import org.apache.logging.log4j.Logger; | |
import paulscode.sound.SoundSystemConfig; | |
import cpw.mods.fml.common.Mod; | |
import cpw.mods.fml.common.Mod.EventHandler; | |
import cpw.mods.fml.common.event.FMLPreInitializationEvent; | |
@Mod(modid = SoundCapMod.MODID, version = SoundCapMod.VERSION) |
This file contains 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
#!/usr/bin/env python | |
import math, os, re | |
from gimpfu import * | |
MERGE_MODE = 1 | |
PATH_PREFIX = "!pth " | |
FILE_PREFIX = "!file " | |
TEXTURE_PREFIX = "!!" | |
REFERENCE_PREFIX = "!ref" |
This file contains 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
{ | |
"test": "v2" | |
} |