Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Patricio López Juri lopezjurip

🎯
Focusing
View GitHub Profile
@lopezjurip
lopezjurip / Python3.sublime-build
Last active Aug 29, 2015
Sublime Text 3 - Python3 (OSX)
View Python3.sublime-build
{
"cmd": ["python3", "-u", "$file"],
"selector": "source.python",
"file_regex": "file \"(...*?)\", line ([0-9]+)",
"encoding": "utf8"
}
@lopezjurip
lopezjurip / TypeScript.sublime-build
Created Jun 3, 2015
Sublime Text 3 - TypeScript ES6 (OSX)
View TypeScript.sublime-build
{
"cmd": ["tsc", "--target ES6", "--declaration", "--module amd", "--sourceMap", "$file"],
"selector": "source.ts"
}
@lopezjurip
lopezjurip / Markdownt to Tex
Created Jun 8, 2015
[Pandoc] Markdown to PDF
View Markdownt to Tex
pandoc --from=markdown_github --highlight-style=tango --output=README.tex README.md --to=latex --standalone
@lopezjurip
lopezjurip / Cpp.sublime-build
Last active Jun 11, 2018
Sublime Text 3 - C++ Compile and run (OSX)
View Cpp.sublime-build
{
"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 Feb 11, 2020
Write to NTFS on OSX Yosemite and El Capitan
View README.md

OUTDATED, see comments below

Install Homebrew:

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

Update Homebrew formulae:

brew update
View init.coffee
# 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 Oct 13, 2021
Install Chocolatey on Windows 10 | Install git and Python3 (with pip)
View chocolatey-git-python3.md

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 Sep 1, 2015
Update and clean pip packages
View script.sh
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 Sep 4, 2015
Repartidor web js
View main.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 Sep 9, 2015
Azure CLI - Create Docker
View README.md

With BrewCask:

brew cask install azure-cli

Quickly access to Microsoft Azure and download settings file:

azure account download