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
const RECT_TAG_NAME: &str = "rect"; | |
const CIRCLE_TAG_NAME: &str = "circle"; | |
const ELLIPSE_TAG_NAME: &str = "ellipse"; | |
const LINE_TAG_NAME: &str = "line"; | |
RECT_TAG_NAME => { | |
let x = self.length_attr_to_user_units(&node, "x").unwrap_or(0.); | |
let y = self.length_attr_to_user_units(&node, "y").unwrap_or(0.); | |
let width = self.length_attr_to_user_units(&node, "width"); | |
let height = self.length_attr_to_user_units(&node, "height"); |
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
00 | |
0a | |
.-=-. .--. | |
__ .' '. / " ) | |
_ .' '. / .-. \ / .-'0c\0a | |
( \ / .-. \ / / \ \ / / 0c^0a | |
\ `-` / \ `-' / \ `-` / | |
`-.-` '.____.' `.____.' | |
07 |
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
File { | |
percents: [], | |
lines: [ | |
( | |
Line { | |
line_components: [ | |
LineComponent { | |
field: Some( | |
Field { | |
letters: "G", |
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
Plaintext: | |
LAWS OF UX | |
01. Aesthetic Usability Effect: Users often perceive aesthetically pleasing design as design that’s more usable. | |
02. Doherty Threshold: Productivity soars when a computer and its users interact at a pace (<400ms) that ensures that neither has to wait on the other. | |
03. Fitts’s Law: The time to acquire a target is a function of the distance to and size of the target. |
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
/* | |
SerialNINAPassthrough - Use esptool to flash the u-blox NINA (ESP32) module | |
Arduino MKR WiFi 1010, Arduino MKR Vidor 4000, and Arduino UNO WiFi Rev.2. | |
Copyright (c) 2018 Arduino SA. All rights reserved. | |
This library is free software; you can redistribute it and/or | |
modify it under the terms of the GNU Lesser General Public | |
License as published by the Free Software Foundation; either | |
version 2.1 of the License, or (at your option) any later version. |
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
Resource Utilization by Entity report for hdmi-demo | |
Sat Feb 8 21:50:00 2020 | |
Quartus Prime Version 19.1.0 Build 670 09/22/2019 SJ Lite Edition | |
--------------------- | |
; Table of Contents ; | |
--------------------- | |
1. Legal Notice | |
2. Fitter Resource Utilization by Entity |
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
import ( | |
"github.com/fogleman/gg" | |
"image/color/palette" | |
"strconv" | |
"image/color" | |
) | |
func main() { | |
const numSquaresPerRow = 16. | |
const numSquaresPerColumn = numSquaresPerRow |
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/bash | |
command() { | |
# enter command here | |
} | |
POWER=`upower -i $(upower -e | grep BAT) | grep --color=never -E percentage|xargs|cut -d' ' -f2|sed s/%//` | |
if [ "$POWER" -gt "50" ] | |
then | |
command | |
else | |
echo "Refusing to run command, battery is low." |
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/bash | |
lsof -U | grep -i socket | cut -d ' ' -f 1 | sort | uniq -c |
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
import java.util.HashMap; | |
import java.util.HashSet; | |
import java.util.Random; | |
/** | |
* | |
* @author Robotia | |
*/ | |
public class MapBucketTesting |