I hereby claim:
- I am eoftedal on github.
- I am erlendoftedal (https://keybase.io/erlendoftedal) on keybase.
- I have a public key whose fingerprint is 1971 4B8D 1365 B742 0C11 3537 E624 182F FB00 B0E6
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
function perfLog(fun, context) { | |
var context = context || this; | |
var realFun = context[fun.name]; | |
context[fun.name] = function() { | |
console.time(fun.name); | |
var result = realFun.apply(context, arguments); | |
console.timeEnd(fun.name); | |
return result; | |
} | |
} |
package no.posten.dpost.sosm; | |
import java.io.ByteArrayInputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.net.URL; | |
import java.security.AccessController; | |
import java.security.CodeSigner; | |
import java.security.CodeSource; | |
import java.security.PrivilegedAction; |
public class Dog { | |
private Tail tail; | |
private Head head; | |
public Dog() { | |
this(new TailImpl(), new HeadImpl()) | |
} | |
public Dog(Tail tail, Head head) { | |
this.tail = tail; | |
this.head = head; |
var oldCreateElement = document.createElement; | |
document.createElement = function() { | |
var element = oldCreateElement.apply(document, arguments); | |
var oldSetAttribute = element.setAttribute; | |
console.log(arguments, element); | |
element.setAttribute = function(name, value) { | |
if (name == "onsubmit") { | |
console.log(arguments.callee.caller.toString()); | |
} | |
oldSetAttribute.apply(element, arguments); |
a = "javascript:evil();\nhttp://www.vg.no" | |
if a =~ /^https?/ then | |
puts "This is a safe url starting with http or https" | |
end |
var mynamespace = mynamespace || {}; | |
(function(){ | |
var counter = { count: 0 }; | |
function incrementCounter(){ | |
counter.count++; | |
} | |
mynamespace.someobject = { | |
counter : counter, |
def preflight(uri) | |
#For some reason this speeds up connect on windows | |
require 'socket' | |
context = OpenSSL::SSL::SSLContext.new | |
tcp_client = TCPSocket.new uri.host, uri.port | |
ssl_client = OpenSSL::SSL::SSLSocket.new tcp_client, context | |
ssl_client.connect | |
end |
public class Person { | |
public final String navn; | |
public Person(String navn) { | |
this.navn = navn; | |
} | |
} | |
<html> | |
<script> | |
var a = "</script><script>alert(1)</script>"; | |
</script> | |
</html> | |