Skip to content

Instantly share code, notes, and snippets.

View klashxx's full-sized avatar
:atom:
Building

Juan Diego Godoy Robles klashxx

:atom:
Building
View GitHub Profile
#!/usr/bin/env python
import re
import urllib
with open('urls', 'r') as urls:
for url in urls:
if 'wiki' not in url:
continue
enc = re.search(r'https.*(?:File|Archivo):([^:]+)\.\S+$', url)
if enc is None:
#!/usr/bin/env python
import re
import urllib
import requests
from bs4 import BeautifulSoup
with open('urls', 'r') as urls:
for url in urls:
if 'wiki' not in url:
#!/usr/bin/env python
from selenium import webdriver
from bs4 import BeautifulSoup
browser = webdriver.Chrome()
with open('./urls.dat', 'r') as urls:
for url in urls:
browser.get(url)
soup = BeautifulSoup(browser.page_source, 'lxml')
meta_title = soup.find('meta', property='og:title')['content']
app.js
require('./logger');
document.write('welcome to my app');
console.log('app loaded');
global.js
{
"window.zoomLevel": 1,
"go.gopath": "/Users/klashxx/Documents/dev/go",
"files.trimTrailingWhitespace": true,
"git.confirmSync": false,
"workbench.colorTheme": "Plastic",
"workbench.iconTheme": "vscode-icons",
"go.autocompleteUnimportedPackages": true
}
alias vi="vim -u ~/.vimrc"
syntax on
filetype indent plugin on
@klashxx
klashxx / README.md
Last active December 12, 2019 10:47
Download VS Code extensions as VSIX

How to use?

  • Copy content of vsix-bookmarklet, create a bookmark in your browser.
  • Navigate to the web page of the VS Code extension you want to install.
  • Click the bookmark you just created, then click the download button.
    download
  • After download finished, rename the file extension to *.vsix.
  • In VS Code, select Install from VSIX... in the extension context menu.
    vsc
@klashxx
klashxx / license-badges.md
Created August 19, 2017 15:12 — forked from lukas-h/license-badges.md
License Badges for your Project

Markdown License badges

Collection of License badges for your Project's README file.
This list includes the most common open source and open data licenses.
Easily copy and paste the code under the badges into your Markdown files.

Notes

  • Badges are made with Shields.io.
  • This badges do not fully replace the license informations for your projects, they are only emblems for the README, that the user can see the License at first glance.  
  • 🇫🇷 Cette liste en français
@klashxx
klashxx / .babelrc
Created September 20, 2017 10:31 — forked from JamieMason/.babelrc
Tree-Shaking with Babel 6, Webpack 2, and React.
{
"presets": [
["es2015", {
"es2015": {
"loose": true,
"modules": false
}
}], "react"
]
}