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
#!/opt/local/bin/zsh | |
################################## | |
################################## | |
################################## | |
get_file_count () { | |
echo $(echo "$(ls | wc -l)-1" | bc) | |
} | |
start_file_count=$(get_file_count) |
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
-- Solution 1 | |
CREATE OR REPLACE FUNCTION increment(i integer) RETURNS integer as $$ | |
BEGIN | |
return i + 1; | |
END; | |
$$ LANGUAGE plpgsql; | |
-- Soluution 2 | |
CREATE FUNCTION increment(i integer) RETURNS integer | |
AS 'select $1 + 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
let webdriver = require('selenium-webdriver'), | |
chrome = require('selenium-webdriver/chrome'), | |
By = webdriver.By | |
until = webdriver.until; | |
let options = new chrome.Options(); | |
options.setChromeBinaryPath('/Applications/Google\ Chrome\ Canary.app/Contents/MacOS/Google\ Chrome\ Canary'); | |
options.addArguments(['headless','disable-gpu']); | |
let driver = new webdriver.Builder().forBrowser('chrome').setChromeOptions(options).build(); |
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
# If you come from bash you might have to change your $PATH. | |
export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH=$HOME/.oh-my-zsh | |
###### Powerlevel9k Settings | |
POWERLEVEL9K_MODE="awesome-patched" | |
ZSH_THEME="powerlevel9k/powerlevel9k" |
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
#pltask functions | |
## pltask is a lightweight facade to taskwarrior for use with Powerlevel9k's Second Prompt Prefix (by dmidlo @querentCode) | |
## Be sure to set search.case.sensitive=no within .taskrc | |
POWERLEVEL9K_PROMPT_ON_NEWLINE=true | |
POWERLEVEL9K_PROMPT_ADD_NEWLINE=true | |
POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX="\n" | |
pltask () { | |
setNewlinePrompt () { | |
POWERLEVEL9K_MULTILINE_SECOND_PROMPT_PREFIX="%K{white}%F{black}\n $1 %f%k%F{white}%f $ " |
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
plugins=(... zsh-syntax-highlighting history-substring-search) |
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
###### Zsh-Syntax-Highlighting Settings | |
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern cursor) | |
ZSH_HIGHLIGHT_STYLES[cursor]='bold' | |
ZSH_HIGHLIGHT_STYLES[alias]='fg=green,bold' | |
ZSH_HIGHLIGHT_STYLES[suffix-alias]='fg=green,bold' | |
ZSH_HIGHLIGHT_STYLES[builtin]='fg=green,bold' | |
ZSH_HIGHLIGHT_STYLES[function]='fg=green,bold' | |
ZSH_HIGHLIGHT_STYLES[command]='fg=green,bold' |
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
plugins=(... zsh-syntax-highlighting) |
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
bindkey '^ ' autosuggest-accept |
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
plugins=(... zsh-autosuggestions ...) |
NewerOlder