One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| class True(object): | |
| def __init__(self, iterations=1): | |
| self.iterations = iterations | |
| self.current_iteration = 0 | |
| def __nonzero__(self): | |
| if self.current_iteration < self.iterations: | |
| self.current_iteration += 1 | |
| return 1 |
| #!/usr/bin/env python | |
| # based on cb-exit used in CrunchBang Linux <http://crunchbanglinux.org/> | |
| import pygtk | |
| pygtk.require('2.0') | |
| import gtk | |
| import os | |
| import getpass |
| // Just before switching jobs: | |
| // Add one of these. | |
| // Preferably into the same commit where you do a large merge. | |
| // | |
| // Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_, | |
| // @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant, | |
| // @KarlHillesland, @rexguo, @tom_forsyth, @bkaradzic, @MikeNicolella | |
| // and myself. | |
| #!/bin/sh | |
| # Some things taken from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # Set the colours you can use | |
| black='\033[0;30m' | |
| white='\033[0;37m' | |
| red='\033[0;31m' | |
| green='\033[0;32m' |
| ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### | |
| ### Shell script to download Oracle JDK / JRE / Java binaries from Oracle website using terminal / command / shell prompt using wget. | |
| ### You can download all the binaries one-shot by just giving the BASE_URL. | |
| ### Script might be useful if you need Oracle JDK on Amazon EC2 env. | |
| ### Script is updated for every JDK release. | |
| ### Features:- | |
| # 1. Resumes a broken / interrupted [previous] download, if any. | |
| # 2. Renames the file to a proper name with including platform info. |
| #!/bin/bash | |
| # Copyright 2017 Théo Chamley | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy of | |
| # this software and associated documentation files (the "Software"), to deal in the Software | |
| # without restriction, including without limitation the rights to use, copy, modify, merge, | |
| # publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons | |
| # to whom the Software is furnished to do so, subject to the following conditions: | |
| # | |
| # The above copyright notice and this permission notice shall be included in all copies or |
O sistema deve oferecer a possibilidade de usuários realizarem transações financeiras como saque e transferencia entre contas.
Um usuário pode se cadastrar e ao completar o cadastro (com verificaçào de email) ele recebe R$ 1000,00.
Com isso ele pode transferir dinheiro para outras contas e pode sacar dinheiro. O saque do dinheiro simplesmente manda um email para o usuário informando sobre o saque e reduz o seu saldo.
| #!/bin/bash | |
| # This script provides easy way to debug remote Erlang nodes that is running in a kubernetes cluster. | |
| # Usage: ./erl-observe.sh -l app=my_all -n default -c erlang_cookie | |
| # | |
| # Don't forget to include `:runtime_tools` in your mix.exs application dependencies. | |
| set -e | |
| # Trap exit so we can try to kill proxies that has stuck in background | |
| function cleanup() { | |
| echo " - Starting local epmd again" |
| #!/bin/bash | |
| CONFIG_PATH=~/.config/Code | |
| for i in $CONFIG_PATH/User/workspaceStorage/*; do | |
| if [ -f $i/workspace.json ]; then | |
| folder="$(python3 -c "import sys, json; print(json.load(open(sys.argv[1], 'r'))['folder'])" $i/workspace.json 2>/dev/null | sed 's#^file://##;s/+/ /g;s/%\(..\)/\\x\1/g;')" | |
| if [ -n "$folder" ] && [ ! -d "$folder" ]; then | |
| echo "Removing workspace $(basename $i) for deleted folder $folder of size $(du -sh $i|cut -f1)" |