Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
set -euo pipefail
# Directory setup
APP_DIR="${HOME}/Applications"
ICON_DIR="${HOME}/.local/share/icons"
DESKTOP_DIR="${HOME}/.local/share/applications"
BIN_DIR="${HOME}/.local/bin"
@cubaraphael
cubaraphael / crawl.pseudo
Created October 8, 2020 17:33 — forked from demetriusnunes/crawl.pseudo
------------------------------
import List, Queue, Hash from lang.data
import fetch, normalize_url from http.utils
import write_file from lang.io
function crawl(start_url) {
crawled = new List
queue = new Queue
visited = new Hash
start_url = normalize_url(start_url)
{
"editor.tabCompletion": true,
"editor.fontSize": 14,
"editor.renderWhitespace": "boundary",
"editor.formatOnType": true,
"editor.autoIndent": true,
"window.zoomLevel": 0,
"files.insertFinalNewline": true,
"explorer.openEditors.visible": 0,
"terminal.integrated.fontSize": 14,

Building a desktop application with Electron

This is a tutorial for building a Markdown-to-HTML renderer using Electron. It is meant to accompany my session on Building a desktop application with Electron at JSConf Colombia.

The slides for the first part of the presentation are available here.

About Steve

Steve is the Director of Academics for the Front-End Engineering program at the Turing School of Software and Design in Denver, Colorado, USA.

@cubaraphael
cubaraphael / es.sh
Created November 28, 2015 22:19 — forked from Globegitter/es.sh
Easy install for elasticsearch on Ubuntu 14.04
cd ~
##If you want to install OpenJDK
#sudo apt-get update
#sudo apt-get install openjdk-8-jre-headless -y
###Or if you want to install Oracle JDK, which seems to have slightly better performance
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
@cubaraphael
cubaraphael / package.json
Created December 5, 2013 01:06
My package.json
{
"name": "cartola",
"version": "0.0.1",
"description": "Projeto Cartola",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Raphael Cuba",
@cubaraphael
cubaraphael / Gruntfile.js
Created December 5, 2013 00:58
My Gruntfile.js
module.exports = function (grunt) {
grunt.initConfig({
jshint: {
all: ['www/js/components/**/*.js'],
options: {
curly: true,
eqeqeq: true,
eqnull: true,
# encoding: utf-8
import random
class Sorter:
def sort_numbers(self, aList):
contador = 0
for i in range(1, len(aList)):
contador += 1
public class Pessoa {
private String nome;
private int velocidade;
// getters e setters...
/*
* Repare nos nomes dos metodos e construtores!
*/
@cubaraphael
cubaraphael / example.py
Last active December 19, 2015 05:49
Examples FBSDK Webapp2
# this case, access token into session
fb = FacebookSDK(access_token=session['access_token'])
# return the name, username and a boolean is_app_user of all friends
query = """
SELECT name, username, is_app_user
FROM user
WHERE uid IN (
SELECT uid2 FROM friend WHERE uid1=me()
)
"""