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
## Sample initialization file for GNU nano. | |
## | |
## VERSION 4.9.3 | |
## | |
## Characters that are special in a shell should not be escaped here. | |
## Inside string parameters, quotes should not be escaped -- the last | |
## double quote on the line will be seen as the closing quote. | |
## | |
## For the options that take parameters, the default value is shown. | |
## Other options are unset by default. To make sure that an option |
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_THEME="avit" | |
plugins=(npm extract vscode web-search z) | |
################# | |
# # | |
# ALIASES # | |
# # | |
################# |
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
@-moz-document url-prefix() {} |
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
.grayscale { | |
-webkit-filter: grayscale(1); | |
filter: grayscale(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
$ shasum -a 256 FILENAME | awk '$1 == "SHA256 HASH" { print "good to go" }' |
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
function interval(func, wait, times){ | |
var interv = function(w, t){ | |
return function(){ | |
if(typeof t === "undefined" || t-- > 0){ | |
setTimeout(interv, w); | |
try{ | |
func.call(null); | |
} | |
catch(e){ | |
t = 0; |
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
<div class="row"> | |
<?php for ($i = 0; $i < count($news); $i++) { ?> | |
<?php if ($i == 0 ) { | |
echo '<div class="row">'; | |
} else if ($i != 0 && $i % 4 == 0) { | |
echo '</div><div class="row">'; | |
} ?> | |
<?php if ($i == (count($news)-1) && count($news) % 4 != 0) { |
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
# Colorful Bash Prompt, inspired by "Extravagant Zsh Prompt" | |
# Screenshot: http://img.gf3.ca/d54942f474256ec26a49893681c49b5a.png | |
# A big thanks to \amethyst on Freenode | |
if [[ $COLORTERM = gnome-* && $TERM = xterm ]] && infocmp gnome-256color >/dev/null 2>&1; then export TERM=gnome-256color | |
elif infocmp xterm-256color >/dev/null 2>&1; then export TERM=xterm-256color | |
fi | |
if tput setaf 1 &> /dev/null; then | |
tput sgr0 |
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
# | |
# Customizing Bash environment | |
# | |
# Correct dir spellings | |
shopt -q -s cdspell | |
# Make sure display get updated when terminal window get resized | |
shopt -q -s checkwinsize |
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 | |
read -p "Enter your name : " name | |
echo "Hi, $name. Let us be friends!" | |
# read three numbers and assigned them to 3 vars | |
read -p "Enter number one : " n1 | |
read -p "Enter number two : " n2 | |
read -p "Enter number three : " n3 |