I hereby claim:
- I am CodeArtha on github.
- I am codeartha (https://keybase.io/codeartha) on keybase.
- I have a public key whose fingerprint is A5DB 63B5 D54F 3B20 229E 6424 D596 DE01 E570 2F11
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/bin/dash | |
# Gets the number of files in the current directory + subdirectories that have a certain extension. | |
PASS=`find . -type f -name "*.pass" | wc -l` | |
ASC0=`find . -type f -name "*.asc" | wc -l` | |
if [ "$PASS" != 0 ]; then | |
# We use gpg to encrypt for ourself any file that contains password if they aren't already. | |
# I take as a convention in this repository to name all files I want to encrypt with the .pass extension. | |
# The encrypted version of said files will have the .pass.asc extension. |
#!/bin/dash | |
echo "[INFO] Updating repository to latest version..." | |
git pull | |
echo "[INFO] Deobfuscating password files..." | |
find . -type f -name "*.pass.asc" | gpg --yes --decrypt-files | |
# Gets the number of files in the current directory + subdirectories that have a certain extension. | |
ASC=`find . -type f -name "*.asc" | wc -l` | |
PASS=`find . -type f -name "*.pass" | wc -l` |
I hereby claim:
To claim this, I am signing this object:
# Indentation suggestion from RayLuo for multiline lists, dicts, and functions arguments. | |
my_dictionary = { # Don't think dict(...) notation has more readability | |
"key1": 1, # Indent by one press of TAB (i.e. 4 spaces) | |
"key2": 2, # Same indentation scale as above | |
"key3": 3, # Keep this final comma, so that future addition won't show up as 2-lines change in code diff | |
} # My favorite: SAME indentation AS ABOVE, to emphasize this bracket is still part of the above code block! | |
the_next_line_of_code() # Otherwise the previous line would look like the begin of this part of code | |
bad_example = { |
[general] | |
targets = github_pawamoy | |
shorten = True | |
inline_links = False | |
annotation_links = True | |
annotation_comments = False | |
legacy_matching = False |
from sympy import * | |
# Sample matrix | |
m = Matrix([ | |
[0.0000, 0.0928, 1.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000,], | |
[0.0000, 0.0000, 0.0000, 0.2300, 0.5200, 0.1000, 0.1200, 0.1000,], | |
[1.0000, 0.1700, 0.0000, 1.0000, 1.0000, 0.6000, 0.1032, 0.2700,], | |
[0.0000, 0.0000, 0.0000, 0.2300, 0.0000, 1.0000, 0.0000, 0.1200,], | |
[0.0000, 0.0000, 0.0000, 0.2700, 0.0000, 0.0000, 0.0000, 0.0000,], | |
[0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0700, 0.7000, 0.0300,], |
import sys | |
# Scripts maps a number between b0 - b1 onto the a0 - a1 scale. | |
# Config is hardcoded for faster data input when using the same range over and over again | |
a0 = float(0) | |
a1 = float(500) | |
b0 = float(61) | |
b1 = float(538) | |
try: |
#!/bin/bash | |
from_ext=".txt" | |
to_ext=".csv" | |
for file in *$from_ext; do mv "$file" "$(basename "$file" $from_ext)$to_ext"; done |