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 lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<script src="https://cdn.tailwindcss.com"></script> | |
<title>Food Label Mini-Project</title> | |
</head> | |
<body class="m-4"> |
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
(** Returns http error 406 for every valid request. | |
build with: `ocamlbuild -use-ocamlfind -pkgs cohttp.lwt,lwt,webmachine main.byte` *) | |
open Cohttp | |
open Cohttp_lwt_unix | |
open Lwt.Infix | |
module Wm = struct | |
include Webmachine.Make(Cohttp_lwt_unix_io) | |
module Rd = Webmachine.Rd | |
end |
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 <iostream> | |
#include <vector> | |
#include <bitset> | |
#include <string> | |
#include <algorithm> | |
using namespace std; | |
bitset<26> awake; | |
vector< vector<int> > v(26); | |
int n, m; |
I hereby claim:
- I am dudelson on github.
- I am dudelson (https://keybase.io/dudelson) on keybase.
- I have a public key ASCFukV2GZLN1gqrjyLuW37sEpa60iK_s-P95FRNz_fKkgo
To claim this, I am signing this object:
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
(* Basic demonstration of how to create and use functors, | |
* as well as how they parallel functions *) | |
(* Here are the two (equivalent) ways to define a function *) | |
let f x = x + 1 | |
let g = fun x -> x + 1 | |
(* The functor has the same two syntaxes as the function, except whereas a | |
* function takes one or more 'expressions' (each of which has a 'type') and |
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
#!/usr/bin/env bash | |
export XAUTHORITY=/home/david/.Xauthority | |
export DISPLAY=:0 | |
export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus" | |
/usr/bin/awesome-client "local beautiful = require('beautiful'); beautiful.update_battery_widget()" |
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
#!/bin/sh | |
# toggles airplane mode | |
if [ ! -d /sys/class/leds/tuxedo::airplane ]; then | |
echo "ERROR: Cannot enable airplane mode without tuxedo-wmi kernel module." | |
echo "Please make sure the module is loaded and try again" | |
exit 1 | |
fi | |
airplane_mode_led="/sys/class/leds/tuxedo::airplane/brightness" |
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
#!/usr/bin/env python | |
''' | |
This script is run after user login. It parses my dotfile config | |
(~/.config/dotfiles.yml), and sets environment variables which my other | |
dotfiles can read in order to be informed of the options I want set. | |
This script only works with python 3. | |
''' | |
import os, subprocess |
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
monitors: [eDP1] | |
monitor_resolution_x: 1920 | |
monitor_resolution_y: 1080 | |
application_layout: | |
terminal: [1, 1] | |
browser: [1, 2] | |
emacs: [1, 3] | |
telegram: [1, 8] |
NewerOlder