Skip to content

Instantly share code, notes, and snippets.

View juusechec's full-sized avatar
💜
Nubanker - Purple Nation

Jorge Ulises juusechec

💜
Nubanker - Purple Nation
View GitHub Profile
#!/usr/bin/env python3
import os
import urllib.request
def create_path(dir):
if not os.path.isdir(dir):
os.mkdir(dir)
def file_exists(file):
return os.path.isfile(file)
// Copyright (c) Ulisses 2019
// License: MIT
// Modified by @juusechec
const Meta = imports.gi.Meta;
const Lang = imports.lang;
const Main = imports.ui.main;
function init(em) {
return new HoppingWindow(em);
@juusechec
juusechec / quiz.html
Created January 14, 2021 12:15
What Kind of Productive Person Are You?
<!--
extracted from: https://www.fastcompany.com/3021596/take-the-quiz-what-kind-of-productive-person-are-you
based on lecture of: https://www.fastcompany.com/3021510/most-productive-people-the-art-of-doing-everything
-->
<div>
<div id="fc-quiz">
<p>
Read these nine statements. Type in the number for how much you agree or disagree. When you&#x2019;re done
(you have to answer them all), click &#x201C;Which type am I&#x201D; and share your type with friends.</p>
<p>
@juusechec
juusechec / tweet-speed-internet.py
Last active January 25, 2021 13:40
Publicar en twitter mi velocidad de internet si este se pierde o si está mucho más abajo de lo vendido
#!/usr/bin/python
# based on: https://arstechnica.com/information-technology/2016/02/comcast-customer-made-bot-that-tweets-at-comcast-when-internet-is-slow/
# twitter access usint this tutorial: https://projects.raspberrypi.org/en/projects/getting-started-with-the-twitter-api/5​​​​​​​​​​​​​​
import os
import sys
import csv
import datetime
import time
import twitter
@juusechec
juusechec / GoWorkers.go
Created March 6, 2021 19:10
Go workers example
package main
import (
"fmt"
"time"
)
func printWorker(name string, days int) {
weeks := days / 7
restDays := days % 7
@juusechec
juusechec / sort_test.go
Created March 6, 2021 19:26
Go Testing Example
// filename sort_test.go
package main
import (
"reflect"
"sort"
"testing"
)
func SortAscending(items []int) []int {
@juusechec
juusechec / numeric_input.go
Created March 6, 2021 19:28
GO NumericInput example with rune input
package main
import "fmt"
import "unicode"
type UserInput interface {
Add(rune)
GetValue() string
}
@juusechec
juusechec / configuracion_kumite.md
Last active November 8, 2021 20:58
Configuración Kumite
@juusechec
juusechec / iniciar_kumite_revancha.md
Last active July 7, 2021 22:56
Iniciar Kumite Revancha