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>Wopian</title> | |
<link href='//fonts.googleapis.com/css?family=Quicksand:300,400,700' rel='stylesheet' type='text/css'> | |
<link href="/assets/css/main.css" rel="stylesheet"> | |
</head> | |
<body id="skrollr-body"> |
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>Love Live Cards</title> | |
<link href='https://fonts.googleapis.com/css?family=Sansita+One|Nunito:400,300,700' rel='stylesheet' type='text/css'> | |
</head> | |
<canvas id="snow"></canvas> |
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
http://method.ac/ | |
http://bl.ocks.org/mbostock | |
https://github.com/mbostock/d3 |
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
1 Panty & Stocking with Garterbelt | |
2 FLCL | |
3 Gate: Thus the JSDF Fought There! | |
4 Cowboy Bebop | |
5 Daily Lives of High School Boys | |
6 Little Witch Academia | |
7 Love Live! | |
8 Tsukimonogatari | |
9 Working!! | |
10 One-Punch Man |
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 time import sleep | |
import time | |
import sys | |
import random | |
from random import uniform | |
from array import array | |
# MAGIC 8 Welcome | |
answer = [ |
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 pivot (array) { | |
let total = array.reduce((accumulator, value) => accumulator + value, 0) | |
let left = 0 | |
// Iterate over each item in array | |
for (let i = 0; i < array.length; i++) { | |
// Subtract its value from the total | |
total -= array[i] | |
// If current total is equal to the left total, then | |
// we've hit the index we need, returns the index |
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 shopt -q globstar | |
then | |
IFS=$'\n' | |
for file in $(find -name '*.gif') | |
do | |
printf "%16s Converting to webm >> $file\n" $SECONDS && | |
ffmpeg -loglevel panic -i "$file" -c:v libvpx -crf 10 -an -b:v 10M -y "${file%.gif}.webm" && | |
if [ -f "${file%.gif}.webm" ] | |
then | |
printf "%16s Deleting gif >> $file\n" $SECONDS |
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
% !TeX root = ../index.tex | |
\chapter{Syntax} | |
\graphicspath{{2-syntax/images/}} | |
\section{Exercise 1} | |
\url{https://intweb.bucks.ac.uk/~21606555/oos/2-syntax/ex1.php} | |
\captionsetup{type=figure}\captionof{figure}{ex1.php} | |
\subfile{pyg/src/2-syntax/ex1} |
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
const { assert, log } = console | |
const input = '1-2,4-6' | |
const output = '1,2,4,5,6' | |
const outputMissing = '3' | |
const numericSort = (a, b) => a - b | |
function expandRange (string) { | |
return String(string.split(',').reduce(function (r, a) { | |
var b = a.split('-').map(Number) | |
do { |
OlderNewer