I hereby claim:
- I am rikonor on github.
- I am rikonor (https://keybase.io/rikonor) on keybase.
- I have a public key ASCWR-UAOoHWgJ755d7VlkDWZdCgGi6CrKEXZkMhdtY8UAo
To claim this, I am signing this object:
@import "utils" | |
// Glboal breakpoints | |
$breakpoints: ( | |
small: 412px, | |
medium: 992px, | |
large: 1200px | |
); |
I hereby claim:
To claim this, I am signing this object:
$desiredPrimary = "127.0.0.1" | |
# Get current DNS Servers | |
$foo = Get-DnsClientServerAddress | where { $_.InterfaceAlias -eq "Ethernet"} | ? {$_.AddressFamily -eq 2 } | |
$dnsServers = $foo.ServerAddresses | |
# Stop if primary is already localhost | |
if ($dnsServers[0].Equals($desiredPrimary)) { | |
echo "Primary DNS Server is already set to 127.0.0.1" | |
exit 0 |
alias timer='start=$SECONDS; while true; do clear; echo $(( SECONDS - start )); sleep 1; done' |
import socket | |
import sys | |
from time import time, sleep | |
import SimpleHTTPServer | |
import SocketServer | |
class Handle200(SimpleHTTPServer.SimpleHTTPRequestHandler): | |
def do_GET(self): | |
self.send_response(200) |
var myList = [10, -1, 20, -30, 40, 50, 60, 70, 80]; | |
var findMinIndex = function(xs) { | |
return xs.reduce(function(currMinIdx, x, idx) { | |
return xs[idx] < xs[currMinIdx] ? idx : currMinIdx; | |
}, 0); | |
}; | |
var minIndex = findMinIndex(myList); | |
console.log(minIndex); |
WITH | |
OldEntry AS ( | |
SELECT domain_id FROM domains WHERE domain = 'google.com' | |
), | |
NewEntry AS ( | |
INSERT INTO domains (domain) | |
SELECT 'google.com' | |
WHERE NOT EXISTS ( | |
SELECT domain_id FROM OldEntry | |
) |
// Override github CSP | |
function overrideGithubCSP() { | |
var mediaHosts = [ | |
'http://i.imgur.com', | |
'https://i.imgur.com' | |
].join(' '); | |
function overrideDetails(details) { | |
for (var i = 0; i < details.responseHeaders.length; i++) { |
package main | |
import "fmt" | |
func main() { | |
d := &MockDoer{} | |
d.DoFn = func() { | |
fmt.Println("Do") | |
d.AlsoDo() |
package publicip | |
import ( | |
"context" | |
"encoding/json" | |
"fmt" | |
"io" | |
"io/ioutil" | |
"net" | |
"net/http" |