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": "2.0.10", | |
"replacements": [ | |
{ | |
"active": true, | |
"case": "Maintain", | |
"repA": "/\\b((President)\\s*(Elect)?|Mr\\.)\\s*(Donald\\s*(John|J\\.|J)?)?\\s*Trump\\b/i", | |
"repB": "Lord Voldemort", | |
"type": "RegEx" | |
}, |
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 | |
PROJECT_DIR="$( cd "$( dirname "$(readlink -f "$0")" )" && pwd )" | |
# or to get one directory up (if runscript is on a bin/ folder) | |
# PROJECT_DIR="$( cd "$( dirname "$(readlink -f "$0")" )/.." && pwd )" | |
java -jar $PROJECT_DIR/target/XXXX.jar "$@" |
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 rand; | |
use std::f64; | |
use std::iter::range_step_inclusive; | |
use std::io; | |
use std::num; | |
use rand::{task_rng,Rng}; | |
static G : [int, ..9] = [247570,280596,280600,249748,18578,18577,231184,16,16]; | |
struct Vector3 { |
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 -window root $HOME/.i3lockbg | |
convert -scale 10% 1000% $HOME/.i3lockbg $HOME/.i3lockbg | |
i3lock -i $HOME/.i3lockbg |
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
def largest_prime_factor(num): | |
i = 2 | |
largest_pfactor = 0 | |
while i <= num: | |
if num % i == 0: | |
largest_pfactor = i | |
num /= i | |
else: | |
i += 1 |
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
# with git line | |
set_prompt() { | |
local OPEN="\["; | |
local CLOSE="\]"; | |
local BGREEN="${OPEN}$(tput setaf 2 ; tput bold)${CLOSE}" | |
local BBLUE="${OPEN}$(tput setaf 4 ; tput bold)${CLOSE}" | |
local BRED="${OPEN}$(tput setaf 1 ; tput bold)${CLOSE}" | |
local COLOROFF="${OPEN}$(tput sgr0)${CLOSE}" | |
export PS1='${debian_chroot:+($debian_chroot)}'"${BRED}"'$(__git_ps1 "{%s} ")'"${BGREEN}"'\u@\h'"${BBLUE}"' \W \$ '"${COLOROFF}" |