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
int n, m; | |
set<int> g[10001]; | |
int indeg[10001]; | |
int o[10001]; | |
set<int> se; | |
inline | |
void solve() { | |
int idx = 0; | |
int cur; | |
int k; |
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
/* Author - Gabber12 | |
Max Flow Algorithm | |
Dinics Algo | |
O(V^2*E) | |
*/ | |
vii g[MAXN]; | |
int cst[MAXN][MAXN]; | |
int sink, src; | |
int dis[MAXN]; | |
int bfs() { |
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
#define MAXN 121 | |
vector<vii > g; | |
vii used; | |
vii pl, pr; | |
bool kuhn(int v) { | |
int k; | |
if(used[v]) return false; | |
used[v] = true; | |
forall(i, 0, g[v].size()) { |
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 pysvn | |
def get_login( realm, username, may_save ): | |
svn_username = settings.SVN_USERNAME | |
svn_password = settings.SVN_PASSWORD | |
return True, svn_username, svn_password, True | |
def ssl_server_trust_prompt(trust_dict): | |
return True, 5, True |
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
execute pathogen#infect() | |
syntax on | |
set number | |
set autoread | |
nnoremap tl :tabnext<CR> | |
nnoremap th :tabprev<CR> | |
nnoremap tn :tabnew<CR> | |
filetype plugin on | |
set statusline+=%#warningmsg# | |
set statusline+=%{SyntasticStatuslineFlag()} |
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
### INSTALLATION NOTES ### | |
# 1. Install Homebrew (https://github.com/mxcl/homebrew) | |
# 2. brew install zsh | |
# 3. Install OhMyZsh (https://github.com/robbyrussell/oh-my-zsh) | |
# 4. brew install reattach-to-user-namespace --wrap-pbcopy-pbpaste && brew link reattach-to-user-namespace | |
# 5. Install iTerm2 | |
# 6. In iTerm2 preferences for your profile set: | |
# Character Encoding: Unicode (UTF-8) | |
# Report Terminal Type: xterm-256color | |
# 7. Put itunesartist and itunestrack into PATH |
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
call plug#begin() | |
Plug 'scrooloose/nerdtree' | |
Plug 'vim-scripts/Solarized' | |
Plug 'ervandew/supertab' | |
Plug 'scrooloose/nerdcommenter' | |
Plug 'tomasr/molokai' | |
Plug 'jiangmiao/auto-pairs' | |
Plug 'nathanaelkane/vim-indent-guides' | |
Plug 'fatih/vim-go', | |
Plug 'nvie/vim-flake8' |
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
<script> | |
Notification.requestPermission().then(function(result) { | |
console.log(result); | |
}); | |
var notify = function(message) { | |
// Let's check if the browser supports notifications | |
if (!("Notification" in window)) { | |
alert("This browser does not support system notifications"); | |
} |
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 boto.ec2 | |
from collections import defaultdict | |
regions = {region.name: region.name for region in boto.ec2.regions()} | |
class RegionPricingContext(object): | |
def __init__(self, region): | |
self.region = region | |
self.context = None |
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
pipeline { | |
agent any | |
stages { | |
stage('Build') { | |
steps { | |
echo 'Building..' | |
} | |
} | |
stage('Test') { | |
steps { |
OlderNewer