Skip to content

Instantly share code, notes, and snippets.

View lopezjurip's full-sized avatar
🎯
Focusing

Patricio López Juri lopezjurip

🎯
Focusing
View GitHub Profile
@lopezjurip
lopezjurip / Python3.sublime-build
Last active August 29, 2015 14:22
Sublime Text 3 - Python3 (OSX)
{
"cmd": ["python3", "-u", "$file"],
"selector": "source.python",
"file_regex": "file \"(...*?)\", line ([0-9]+)",
"encoding": "utf8"
}
@lopezjurip
lopezjurip / TypeScript.sublime-build
Created June 3, 2015 03:37
Sublime Text 3 - TypeScript ES6 (OSX)
{
"cmd": ["tsc", "--target ES6", "--declaration", "--module amd", "--sourceMap", "$file"],
"selector": "source.ts"
}
@lopezjurip
lopezjurip / Markdownt to Tex
Created June 8, 2015 02:58
[Pandoc] Markdown to PDF
pandoc --from=markdown_github --highlight-style=tango --output=README.tex README.md --to=latex --standalone
@lopezjurip
lopezjurip / Cpp.sublime-build
Last active June 11, 2018 00:02
Sublime Text 3 - C++ Compile and run (OSX)
{
"cmd": ["g++ $file -o $file_base_name -I/usr/local/include ; ./$file_base_name"],
"selector": "source.c++",
"shell": true
}
@lopezjurip
lopezjurip / README.md
Last active September 10, 2023 06:27
Write to NTFS on OSX Yosemite and El Capitan

OUTDATED, see comments below

Install Homebrew:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Update Homebrew formulae:

brew update
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@lopezjurip
lopezjurip / chocolatey-git-python3.md
Last active September 15, 2023 02:38
Install Chocolatey on Windows 10 | Install git and Python3 (with pip)

Install Chocolatey on Windows 10

First, you have to run Powershell as administrator. Then type the following:

Set-ExecutionPolicy Unrestricted

Accept to continue.

Then we install Chocolatey:

@lopezjurip
lopezjurip / script.sh
Created September 1, 2015 15:04
Update and clean pip packages
pip3 install --upgrade pip; pip install --upgrade pip; pip freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install -U; pip3 freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip3 install -U; rm -rf ~/Library/Caches/pip
@lopezjurip
lopezjurip / main.js
Created September 4, 2015 13:46
Repartidor web js
var turn = 0;
console.log(['LosExtraterrestresMusicales', 'Rupie', 'TheTeam', 'Veritas',
'YisusPlusOne', 'ImaginApp', 'Nebuchadnezzar', 'Rock',
'InternalServerError', 'String.random', 'ZipCity2000',
'PW:Software', 'ToPa', 'tqzptscsaj',]
.sort(.5 - Math.random())
.reduce(function(previous, current) {
previous[['pato', 'thomas', 'pedro'][turn++ % 3]].push(current);
return previous;
}, {pato: [], thomas: [], pedro: []}));
@lopezjurip
lopezjurip / README.md
Created September 9, 2015 02:18
Azure CLI - Create Docker

With BrewCask:

brew cask install azure-cli

Quickly access to Microsoft Azure and download settings file:

azure account download