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.
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 |
#include <iostream> | |
#include "single_instance.hpp" | |
using namespace std; | |
class A : public enable_single_instance<A> | |
{ | |
friend class enable_single_instance<A>; | |
public: |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |