This file contains hidden or 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
characters = [ | |
{'id': 1, 'visible': set()}, | |
{'id': 2, 'visible': set()}, | |
{'id': 3, 'visible': set()}, | |
{'id': 4, 'visible': set()}, | |
{'id': 5, 'visible': set()}, | |
{'id': 6, 'visible': set()}, | |
] | |
mapchunks = [ |
This file contains hidden or 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 { expect } from 'chai' | |
import { shallowMount } from '@vue/test-utils' | |
import HelloWorld from '@/components/HelloWorld.vue' | |
describe('HelloWorld.vue', () => { | |
it('renders props.msg when passed', () => { | |
const msg = 'new message' | |
debugger | |
const wrapper = shallowMount(HelloWorld, { | |
propsData: { msg } |
This file contains hidden or 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 main | |
import ( | |
"context" | |
"crypto/tls" | |
"errors" | |
"log" | |
"net" | |
"net/http" | |
"net/http/httputil" |
This file contains hidden or 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
Attack Vector Checklist v1.2 Mar 23rd 2010 | |
----------------------------------- | |
target site: [ ] | |
user accounts: [ ] | |
/*****************************************************************************/ | |
/* AUTHENTICATION */ | |
/*****************************************************************************/ |
This file contains hidden or 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
// Super simple re-sizable execution worker pool that allows you to add/remove workers easily | |
// obviously the doWork function should use context or something to cancel any 'work' being done if necessary. | |
// author: https://twitter.com/_wirepair | |
package main | |
import ( | |
"fmt" | |
"sync" | |
"sync/atomic" | |
"time" |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>24bit 16bit color converter</title> | |
<script> | |
window.addEventListener('load', function() | |
{ | |
let i24 = document.getElementById('in24'); | |
let i16 = document.getElementById('in16'); |
This file contains hidden or 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
original: | |
go test -count 1 -bench=Original -benchmem -memprofilerate=1 -memprofile=memoriginal.pprof | |
BenchmarkOriginal-8 1000000 25551 ns/op 41038.30 MB/s 592 B/op 13 allocs/op | |
(pprof) top10 | |
565.58MB of 565.64MB total ( 100%) | |
Dropped 85 nodes (cum <= 2.83MB) | |
Showing top 10 nodes out of 11 (cum >= 565.58MB) | |
flat flat% sum% cum cum% | |
274.66MB 48.56% 48.56% 274.66MB 48.56% github.com/wirepair/chachazero/vendor/github.com/codahale/chacha20.NewWithRounds |
This file contains hidden or 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
// An attempt at an optimized udp client/server implementation that has clients sending 10pps. | |
// run the server: go build && main -server -num 5000 | |
// run the client: go build && main -num 5000 | |
// i was only able to get 9000 clients sending for 30 seconds with 0 packet loss in windows | |
// after that i started get drops | |
// | |
// author: isaac dawson @ https://twitter.com/_wirepair | |
package main |
This file contains hidden or 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 main | |
import ( | |
"encoding/json" | |
"flag" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"net/http" | |
) |
This file contains hidden or 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
if (navigator.webdriver === true) { | |
var x = new XMLHttpRequest(); | |
x.open("POST", "/hub/extensions/firefox/quit", true); | |
x.setRequestHeader('content-type', 'application/json'); | |
var y = {name: "quit", sessionId: "", parameters: {}} | |
x.send(JSON.stringify(y)); | |
} |
NewerOlder