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
#change the hardstatus settings to give an window list at the bottom of the | |
#screen, with the time and date and with the current window highlighted | |
startup_message off | |
hardstatus alwayslastline | |
#hardstatus string '%{= mK}%-Lw%{= KW}%50>%n%f* %t%{= mK}%+Lw%< %{= kG}%-=%D %d %M %Y %c:%s%{-}' | |
hardstatus string '%{gk}[ %{G}%H %{g}][%= %{wk}%?%-Lw%?%{=b kR}(%{W}%n*%f %t%?(%u)%?%{=b kR})%{= kw}%?%+Lw%?%?%= %{g}][%{Y}%l%{g}]%{=b C}[ %m/%d %c ]%{W}' | |
defscrollback 5000 | |
autodetach on | |
idle 600 eval "screen cmatrix -f -o -u 10" "idle 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
https://github.com/sferik/t | |
Requires Ruby 1.9.3 + rubygems |
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
$ awk '{if(min==""){min=max=$1}; if($1>max) {max=$1}; if($1< min) {min=$1}; total+=$1; count+=1} END {print total/count, min, max}' FILE.DAT |
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 readline | |
""" | |
Just importing the 'readline' ('or 'gnureadline', as it has been renamed) package will do! | |
To add text completion: see here: https://pymotw.com/2/readline/ | |
""" | |
While 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
import colorama | |
# Optional?? I did not put it in my code, and outputs colors just fine. | |
# colorama.init() | |
print(colorama.Fore.RED + 'some red text') | |
print(colorama.Back.GREEN + 'and with a green background') | |
print(colorama.Style.DIM + 'and in dim text') | |
print(colorama.Style.RESET_ALL) | |
print('back to normal now') |
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
#! /usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
""" | |
USE UNDER YOUR OWN RESPONSIBILITY!! | |
IMPORTANT: options with sub-levels MUST end with spaces!!! | |
""" |
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
#!/usr/bin/env python2 | |
""" | |
I am new both to OpenAI and AI itself. | |
I have to (shamelessly) admit that I have just taken the coded uploaded by 'shanest' | |
from his write up (https://gym.openai.com/evaluations/eval_RE77KlTNTvCGzTgtm0Qqg), | |
studied it, and lightly tweaked it with my own ideas. |
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
# coding: utf-8 | |
api = "api_key" | |
search_id = "search_id_code" | |
query = "query words" | |
url="https://www.googleapis.com/customsearch/v1?key={}&cx={}&q={{}}&fields=items(link)&dateRestrict=y2&start=11".format(api, search_id); | |
a = requests.get(url.format(query)); print(a.status_code); a.json() |
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
### Keybase proof | |
I hereby claim: | |
* I am ricrogz on github. | |
* I am invik (https://keybase.io/invik) on keybase. | |
* I have a public key whose fingerprint is 5D76 3A33 A52C 586F 9537 BA40 D076 E68B D60E 8400 | |
To claim this, I am signing this object: |
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
convert -density 300 proyectos.pdf -compress LZW -resample 150 -colors 31 test.pdf |
OlderNewer