Skip to content

Instantly share code, notes, and snippets.

Moncho Varela nakome

Block or report user

Report or block nakome

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@nakome
nakome / index.html
Created Apr 18, 2018
Transitions theme #2
View index.html
<div class="loader">
<div class="loader-inner">
<span>[</span>
<span></span>
<span>]</span>
<span>0%</span>
</div>
</div>
@nakome
nakome / build-theme.py
Last active Mar 11, 2018
Script para clonar he instalar dependencias desde el menu del terminal .. en proceso
View build-theme.py
#!bin/env python
"""
Script para clonar,instalar dependencias y iniciar Gulp con menu.
"""
# importamos las librerias
import os
import sys
import time
View automate-script.py
#!/usr/bin/python
"""
Script
"""
import os
import subprocess
import time
subprocess.call('clear', shell=True)
@nakome
nakome / abc.py
Created Dec 14, 2017
Generar abecedario
View abc.py
import time
# generate abcde
def abc():
i = 65
while True:
l = chr(i)
print(f"{l}",end=" ", flush=True),
time.sleep(0.5)
i = i+1
if i == 91:
@nakome
nakome / contador.py
Created Dec 14, 2017
Countdown seconds
View contador.py
# countdown in seconds
import time
tiempo = int(input("Introduce el tiempo en segundos"))
i=1
start = True
while start:
print(f"A pasado {i} segundo")
time.sleep(1)
i = i+1
if i == tiempo:
@nakome
nakome / db.js
Created Dec 13, 2017
Firebase class
View db.js
/**
* const configuration = {
* apiKey: "",
* authDomain: "",
* databaseURL: "",
* projectId: "",
* storageBucket: "",
* messagingSenderId: ""
* }
*/
@nakome
nakome / editor.py
Last active Dec 5, 2017
Editor de text hecho con Python
View editor.py
# Editor de texto
# Requisitos:
# - appjar: http://appjar.info/
import sys
import time
from appJar import gui
######################
# Funciones #
View data.json
[
{"Name": "Apple", "Quantity": 10},
{"Name": "Pear", "Quantity": 20},
{"Name": "Orange", "Quantity": 30},
{"Name": "Lettuce", "Quantity": 80},
{"Name": "Tomate", "Quantity": 15},
{"Name": "Cucumber", "Quantity": 50}
]
View init-theme.sh
# tput setaf 1; # red
# tput setaf 2; # green
# tput setaf 3; # yellow
# tput setaf 4; # blue
showProgress()
{
@nakome
nakome / colors.sh
Created Nov 30, 2017
Colors for linux shell
View colors.sh
# check if stdout is a terminal...
if test -t 1; then
# see if it supports colors...
ncolors=$(tput colors)
if test -n "$ncolors" && test $ncolors -ge 8; then
bold="$(tput bold)"
underline="$(tput smul)"
standout="$(tput smso)"
You can’t perform that action at this time.