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 count = 3600; | |
let counter = setInterval(timer, 1000); | |
function timer() { | |
count = count - 1; | |
if (count <= 0) { | |
clearInterval(counter); | |
return console.log('color'); | |
} | |
console.log(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
# Set ZSH_CACHE_DIR to the path where cache files should be created | |
# or else we will use the default cache/ | |
if [[ -z "$ZSH_CACHE_DIR" ]]; then | |
ZSH_CACHE_DIR="$ZSH/cache" | |
fi | |
# Migrate .zsh-update file to $ZSH_CACHE_DIR | |
if [ -f ~/.zsh-update ] && [ ! -f ${ZSH_CACHE_DIR}/.zsh-update ]; then | |
mv ~/.zsh-update ${ZSH_CACHE_DIR}/.zsh-update | |
fi |
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
# Set ZSH_CACHE_DIR to the path where cache files should be created | |
# or else we will use the default cache/ | |
if [[ -z "$ZSH_CACHE_DIR" ]]; then | |
ZSH_CACHE_DIR="$ZSH/cache" | |
fi | |
# Migrate .zsh-update file to $ZSH_CACHE_DIR | |
if [ -f ~/.zsh-update ] && [ ! -f ${ZSH_CACHE_DIR}/.zsh-update ]; then | |
mv ~/.zsh-update ${ZSH_CACHE_DIR}/.zsh-update | |
fi |
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/novuh/.oh-my-zsh" | |
# Set name of the theme to load --- if set to "random", it will | |
# load a random theme each time oh-my-zsh is loaded, in which case, | |
# to know which specific one was loaded, run: echo $RANDOM_THEME | |
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes |
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
# vim:ft=zsh ts=2 sw=2 sts=2 | |
# | |
# agnoster's Theme - https://gist.github.com/3712874 | |
# A Powerline-inspired theme for ZSH | |
# | |
# # README | |
# | |
# In order for this theme to render correctly, you will need a | |
# [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts). | |
# Make sure you have a recent version: the code points that Powerline |
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
@Plugin.command('mban', parser=True, level=CommandLevels.MOD) | |
@Plugin.parser.add_argument('users', type=long, nargs='+') | |
@Plugin.parser.add_argument('-r', '--reason', default='', help='reason for modlog') | |
def mban(self, event, args): | |
members = [] | |
failed_ids = [] | |
for user_id in args.users: | |
if not self.can_act_on(event, user_id, throw=False): | |
# raise CommandFail('failed to ban {}, invalid permissions'.format(user_id)) | |
failed_ids.append(member) |