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
extern crate sdl2; | |
use std::path::Path; | |
use std::time::Duration; | |
use sdl2::render::Canvas; | |
use sdl2::video::Window; | |
use sdl2::event::Event; | |
use sdl2::keyboard::Keycode; | |
use sdl2::rect::{Point, Rect}; |
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
{ | |
"version": 1, | |
"notes": "My awesome keymap", | |
"documentation": "\"This file is a QMK Configurator export. You can import this at <https://config.qmk.fm>. It can also be used directly with QMK's source code.\n\nTo setup your QMK environment check out the tutorial: <https://docs.qmk.fm/#/newbs>\n\nYou can convert this file to a keymap.c using this command: `qmk json2c {keymap}`\n\nYou can compile this keymap using this command: `qmk compile {keymap}`\"\n", | |
"keyboard": "xd96", | |
"keymap": "mw96", | |
"layout": "LAYOUT_96_ansi", | |
"layers": [ | |
[ | |
"KC_ESC", |
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
unitsize(2mm); | |
srand(101); | |
real Width = 100.0; | |
real Height = 133.04; | |
real ColorOffset = 0.3; | |
path BBox = (0,0)--(Width, 0)--(Width, Height)--(0, Height)--cycle; | |
path BAR = scale(0.1*Width, 0.7*Width) * shift(-0.5, -0.5) * unitsquare; |
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 python3 | |
import sys, os | |
import json | |
import time | |
from tqdm import tqdm | |
import requests | |
import lxml.html |
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> | |
<title></title> | |
<meta charset="utf-8" /> | |
<style> | |
:root | |
{ | |
--distance: 600px; | |
--angle: 30deg; |
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 | |
import sys, os | |
import numpy | |
import matplotlib | |
import matplotlib.font_manager as Fm | |
import matplotlib.backends.backend_pdf as PltPDF | |
from mpl_toolkits.mplot3d import Axes3D | |
def loadData(filename): |
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
.results | |
{ | |
display: flex; | |
flex-direction: row; | |
flex-wrap: wrap; | |
justify-content: space-around; | |
} | |
.result | |
{ |
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
CLEARSCREEN. | |
//This is our countdown loop, which cycles from 10 to 0 | |
PRINT "Counting down:". | |
FROM {local countdown is 10.} UNTIL countdown = 0 STEP {SET countdown to countdown - 1.} DO | |
{ | |
PRINT "..." + countdown. | |
WAIT 1. // pauses the script here for 1 second. | |
} |
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
;; Maximize and restore window. | |
(defvar window-confs (make-hash-table)) | |
;; window-confs is equvalent to this: | |
;; | |
;; { frame1: {"zoomed": false, "conf": <some conf>}, | |
;; frame2: {"zoomed": true, "conf": <some other conf>} } | |
(defun save-window-conf () | |
"Save current window configuration of current frame." | |
(let ((this-frame (selected-frame)) |
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
body | |
{ | |
font-family: "Avenir Next", sans-serif; | |
} | |
div#wrapper | |
{ | |
max-width: 1024px; | |
} |