A GUI to help you to visualize trigonometric values. Built using ReactJS, SVG and Fraction.js (https://github.com/infusion/Fraction.js).
A Pen by Anthony Dugois on CodePen.
| #include <iostream> | |
| #include <iomanip> | |
| #include <sstream> | |
| #include <vector> | |
| #include <cassert> | |
| #include <cmath> | |
| using namespace std; | |
| class BigInt |
| !switch \| `~ | |
| keycode 0x31 = backslash bar backslash bar | |
| keycode 0x33 = grave asciitilde grave asciitilde | |
| !switch Super_L Alt_L | |
| clear mod1 | |
| clear mod4 | |
| keycode 0x85 = Alt_L Meta_L Alt_L Meta_L | |
| keycode 0x40 = Super_L NoSymbol Super_L | |
| add mod1 = Alt_L Alt_R Meta_L |
A GUI to help you to visualize trigonometric values. Built using ReactJS, SVG and Fraction.js (https://github.com/infusion/Fraction.js).
A Pen by Anthony Dugois on CodePen.
| {-# LANGUAGE ViewPatterns #-} | |
| module CEnum where | |
| import Data.Maybe ( fromMaybe ) | |
| import Text.Read ( readMaybe ) | |
| import Text.Regex.PCRE | |
| import Language.Haskell.TH | |
| normalCons :: Con -> Name |
| #!/bin/bash | |
| cat << EOF >> $HOME/.bashrc | |
| export PATH="\$HOME/.local/bin:\$HOME/.cabal/bin:/opt/ghc/7.10.2/bin:/opt/cabal/head/bin:\$PATH" | |
| alias tmux="tmux -2" | |
| EOF | |
| cat << EOF > $HOME/.gitconfig |
| /* | |
| * Copyright (C) 2007 The Android Open Source Project | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| <input type="file" id="fileinput"/> |
| module Main where | |
| import Data.List | |
| vertices = "ABCDEFGHIJK" | |
| edges = ["ADB", "AEC", "AFHJ", "AGIK", "BJKC", "BHIE", "DFGE"] | |
| combinations n = filter ((==n) . length) . subsequences | |
| inSameEdge xs = or [ all (`elem` edge) xs | edge <- edges] | |
| isTriangle (a:b:c:[]) = all inSameEdge [[a, b], [a, c], [b, c]] && not (inSameEdge [a, b, c]) | |
| triangles = filter isTriangle (combinations 3 vertices) |
| awk 'BEGIN{RS="\\+\\+\\+\\+\\+\\+\\+\\+\\+ Incoming Request \\+\\+\\+\\+\\+\\+\\+\\+\\+"; FS="\n"} { match($0, /X-Real-IP: ([0-9\.]+)/, ary); fn=ary[1]".txt"; print $0 >> fn }' debug.log | |
| grep -l 'HTTP/1.1 412 Precondition Failed' *.txt | while read file; do mv $file 412; done |