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 glob | |
import argparse | |
import subprocess | |
import shutil | |
import sys | |
from pathlib import Path | |
def parse_args(): | |
parser = argparse.ArgumentParser(description="Denoise images with waifu2x.") |
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
#![feature(test)] | |
extern crate test; | |
extern crate itertools; | |
use test::Bencher; | |
use itertools::Itertools; | |
fn strings_vec() -> Vec<String> { | |
vec![String::from("again"); 512] |
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
<bpy> | |
<Theme> | |
<user_interface> | |
<ThemeUserInterface menu_shadow_fac="0.01" | |
menu_shadow_width="0" | |
icon_file="" | |
icon_alpha="1" | |
widget_emboss="#00000000" | |
axis_x="#dc0000" | |
axis_y="#00dc00" |
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 sys | |
import argparse | |
ALIAS_DECLARATION = "alias {script_name} {script_name}0" | |
ALIAS_PREFIX = "alias {script_name}{line_number} \"" | |
ALIAS_SUFFIX = "alias {script_name} {script_name}{next_line_number}" | |
def main(argv): |
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 | |
""" | |
Script to control the fan speed of an NVidia gpu using a custom fan speed/temperature curve. | |
Copyright (C) 2012 Luke Frisken | |
This program is free software: you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation, either version 3 of the License, or | |
(at your option) any later version. |