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
function simulate() { | |
var theCanvas = document.getElementById("the-canvas"); | |
var theContext = theCanvas.getContext('2d'); | |
theContext.translate(theCanvas.width / 2, theCanvas.height / 2); | |
var radius = 60; | |
var amplitude = theCanvas.height / 2 - radius - 10; | |
var sinBall = { | |
x: 0, |
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
#!/bin/sh | |
find $1 -type f -print0 | xargs -0 stat -f'%z' | awk '{b+=$1} END {print b}' | awk '{ sum=$1 ; hum[1024**3]="GB";hum[1024**2]="MB";hum[1024]="KB"; for (x=1024**3; x>=1024; x/=1024){ if (sum>=x) { printf "%.2f %s\n",sum/x,hum[x];break } }}' |
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
from datetime import datetime | |
import fileinput | |
start = datetime.now() | |
L = [] | |
for line in fileinput.input(): | |
L.append(int(line)) | |
print 'time to read 8000000 ints into list using append: ', datetime.now() - start |
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
mcinspect delete $(mcinspect list | grep <substring> | awk -F'|' '{ print $4 }') |
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
#!/usr/bin/env python3 | |
from Crypto.Cipher import AES | |
import hashlib | |
import sys | |
import argparse | |
import getpass | |
parser = argparse.ArgumentParser() | |
parser.add_argument("filepath", help="journal file to decrypt") |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
wget -r -A mp3,mp4,m4a,ogg,flac,wav,aiff,3ga,wma,ram,aac,pcm,midi,snd,mid,m4p,ra,ape,aa3,xa,ac3,fla,mp4b,m2a,mp2,au,mp1 --no-parent http://www.e22.com/shing02 | |
IFS=$'\n'; for f in $(find www.e22.com -type f | egrep ".*\.(mp3|mp4|m4a|ogg|flac|wav|aiff|3ga|wma|ram|aac|pcm|midi|snd|mid|m4p|ra|ape|aa3|xa|ac3|fla|mp4b|m2a|mp2|au|mp1)$"); do mv "$f" .; done | |
rm -r www.e22.com |
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 * as Rx from 'rxjs/Rx'; | |
import { API_ROOT } from 'src/constants'; | |
import Axios, { AxiosResponse } from 'axios'; | |
import * as moment from 'moment'; | |
function createDatestamp() { | |
return moment().utc().format('YYYY-MM-DDTHH:mm:ss'); | |
} | |
let datestamp = createDatestamp(); |
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
yarn run v1.3.2 | |
$ ./node_modules/.bin/wdio ./e2e/config/wdio.conf.js | |
F | |
․․FFF․F․․F․F․․․․․․․․․․․․․․․․․․․․․․․․․․․F․․․․․․․․․FFFFF․․․․․F․․․․․․․․․․․․․․․․․․․․․․․․F․F․FF․․․FF․FFFFF․․F․FFFFFFFFF․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․FFFF․․․FFFF․․․ | |
106 passing (1091.90s) | |
10 skipped | |
42 failing |
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
--- | |
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: cilium-config | |
namespace: kube-system | |
data: | |
# This etcd-config contains the etcd endpoints of your cluster. If you use | |
# TLS please make sure you follow the tutorial in https://cilium.link/etcd-config | |
etcd-config: |- |