Skip to content

Instantly share code, notes, and snippets.

View LordAro's full-sized avatar

Charles Pigott LordAro

View GitHub Profile
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCntA+4D8gAXocrFrC1MYhAyT2QzS5Qpx2emsg/hhjrxYVizmDQFV0BpqSPXDGEEFAcZNIQay/0i3u6JXoLnoB5xHJYHAk7xlRVKsX3T74MXFxucNQK5ZBlMIDGd2+T1JnqLM4lJ3Qo76q05ljloURFCkkchTsczUiKxKei42RI7bBVAjvZTREqalZQ+Il4j8h7G7Uy3CVkyLxYYQka4vFPAUUGov4BTu/WOtbmmcZ9pkQFIkoGSqXlRznurpgOE5gf+AiPytHGmyvVOz/G2O0Bpha0pgZtxJVVZnEvi8PqLQCHX1qM/GoW50UYIVnKdyhlS6Mg9DByETlC86N6Uj5d lordaro@Donald.Arch
Section "Monitor"
Identifier "HDMI-0"
Option "Rotate" "left"
Option "LeftOf" "DVI-1"
Option "PreferredMode" "1920x1080"
Option "Position" "0 0"
EndSection
Section "Monitor"
Identifier "DVI-1"
#version 120
// The texture data
uniform sampler2D texture;
// Interpolated texture coordinates recieved from vertex shader
varying vec2 tex_position;
void main(void) {
// Sets the fragment colour to the corresponding texel
22929 admin
3036 test
2990 user
2591 support
2182 oracle
1594 org
1586 hacksoc
1575 runciman
1413 guest
1261 postgres
@LordAro
LordAro / eval.cpp
Last active September 27, 2015 18:19
#include <algorithm>
#include <functional>
#include <iostream>
#include <map>
#include <string>
// Temporary stuff. Replace with whatever you have elsewhere.
class Const {
public:
std::string label;
@LordAro
LordAro / euler006.go
Last active April 7, 2016 20:30
PE006 in Golang, at compile time.
package main
//go:generate sumdiff.sh 100
import "fmt"
func main() {
fmt.Println("Sum difference:", SumDiff)
}
#include <iostream>
#include <chrono>
/**
* Benchmark a function's runtime, with answer stability checking.
* @tparam F Function type to benchmark.
* @tparam Args Argument types of #F.
* @param iterations
* @param func Function to benchmark.
* @param args Arguments of #func.
#!/usr/bin/env sh
WALL_DIR=${HOME}/Pictures/Backgrounds
PORTRAIT=""
LANDSCAPE=""
for i in ${WALL_DIR}/*; do
set -- $(identify -ping -format "%w %h" "$i")
if [ "$2" -lt "$1" ]; then
LANDSCAPE+="$i "
<html>
<head>
<title>Dropdown test</title>
<style>
.textcomplete-dropdown {
border: 1px solid #ddd;
background-color: white;
}
.textcomplete-dropdown li {
#!/usr/bin/env sh
WALL_DIR=${HOME}/Pictures/Backgrounds
PORTRAIT=""
LANDSCAPE=""
for i in ${WALL_DIR}/*; do
set -- $(identify -ping -format "%w %h" "$i")
if [ "$2" -lt "$1" ]; then
LANDSCAPE+="$i "