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
-- Elm 0.19.0 | |
-- mdgriffith/elm-ui 1.1.0 | |
import Element exposing (..) | |
import Element.Background as Background | |
import Element.Border as Border | |
import Element.Font as Font | |
main = | |
layout [] myLayout |
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
-- Elm 0.19.0 | |
import Html exposing (..) | |
import Html.Events exposing (..) | |
import Html.Attributes exposing (..) | |
import Browser | |
main = | |
Browser.sandbox { init = init, view = view, update = update } | |
type alias Model |
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
-- Elm 0.19.0 | |
module Blue exposing (main) | |
import Html exposing (..) | |
main = | |
div [] [ text "Hello from Blue!" ] |
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
-- Elm 0.19.0 | |
import Browser | |
import Html exposing (..) | |
main = | |
Browser.sandbox { init = init, view = view, update = update } | |
type alias Model = | |
String |
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
extern crate reqwest; | |
use reqwest::*; | |
#[derive(Debug)] | |
struct MyClient { | |
client: Client, | |
token: String | |
} | |
impl MyClient { |
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
fn use_match() { | |
for i in 1..20 { | |
match (i%3, i%5) { | |
(0,0) => println!("FizzBuzz"), | |
(_,0) => println!("Buzz"), | |
(0,_) => println!("Fizz"), | |
(_,_) => println!("{}", i) | |
} | |
} | |
} |
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
#!/bin/bash | |
# rotate tablet display clockwise | |
#xrandr --output HDMI-1 --rotate right | |
# find stylus ID number | |
STYLUS=$(xsetwacom list devices | grep -i stylus | awk '{print $(NF-2)}') | |
ERASER=$(xsetwacom list devices | grep -i eraser | awk '{print $(NF-2)}') | |
# map wacom inputs to display |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
apiVersion: v1 | |
clusters: | |
- cluster: | |
server: {{endpoint_url}} | |
certificate-authority-data: {{cert_data}} | |
name: kubernetes | |
contexts: | |
- context: | |
cluster: kubernetes | |
user: aws |
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
"""subnet IP usage audit""" | |
# stdlib | |
from ipaddress import IPv4Network | |
# 3rd party | |
import boto3 | |
# local |