This file contains 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
pkgs: attrs: | |
with pkgs; | |
let defaultAttrs = { | |
builder = "${bash}/bin/bash"; | |
args = [ ./builder.sh ]; | |
setup = ./setup.sh; | |
baseInputs = [ findutils patchelf gnutar gzip gnumake gcc binutils-unwrapped coreutils gawk gnused gnugrep ]; | |
buildInputs = []; | |
system = builtins.currentSystem; | |
}; |
This file contains 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> | |
<meta charset="UTF-8" /> | |
<title>Twitter Archive Browser</title> | |
<script src="https://unpkg.com/react@16/umd/react.development.js"></script> | |
<script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script> | |
<script src="https://unpkg.com/babel-standalone@6.15.0/babel.min.js"></script> | |
<style> |
This file contains 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
sage | |
┌────────────────────────────────────────────────────────────────────┐ | |
│ SageMath version 8.6, Release Date: 2019-01-15 │ | |
│ Using Python 2.7.16. Type "help()" for help. │ | |
└────────────────────────────────────────────────────────────────────┘ | |
sage: | |
sage: notebook() | |
('The notebook files are stored in:', 'sage_notebook.sagenb') | |
┌────────────────────────────────────────────────┐ | |
│ │ |
This file contains 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
[8 of 8] Compiling Main ( Test.hs, dist/build/heap-tests/heap-tests-tmp/Main.o ) | |
Test.hs:15:10: error: | |
• The constructor ‘Success’ should have 6 arguments, but has been given 3 | |
• In the pattern: Success _ _ _ | |
In a case alternative: | |
(Success _ _ _) | |
-> do putStrLn "Tests for Data.Heap.Internal:" >> Internal.runTests | |
>> putStrLn "" | |
putStrLn "Tests for Data.Heap.Item:" >> Item.runTests |
This file contains 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
# HELP => $ man configuration.nix | |
# SEARCH PKGs => $ nix-env -qaP | grep wget | |
{ config, pkgs, ... }: | |
{ | |
imports = | |
[ ./hardware-configuration.nix ]; | |
hardware = { |
This file contains 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
-- Type Definition of Matrix | |
data Mat = Mat [[Int]] | |
-- Show Instance of Matrix | |
showRow [] = "" | |
showRow (x:xs) = show x ++ "\t\b" ++ showRow xs | |
showMat :: Mat -> String | |
showMat (Mat []) = "" | |
showMat (Mat (x:xs)) = showRow x ++ "\n" ++ showMat (Mat xs) | |
instance Show Mat where show m = showMat m |
This file contains 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
#include <stdio.h> | |
#include <math.h> | |
double lim(double (*f)(double), double p) | |
{ | |
double a(int n) | |
{ | |
if (isinf(p)) { | |
return pow(2, n); | |
} |