Skip to content

Instantly share code, notes, and snippets.

View ks7000's full-sized avatar
🎯
Focusing

ks7000.net.ve (#FullSnackDeveloper) ks7000

🎯
Focusing
View GitHub Profile
@ks7000
ks7000 / aboutReader.css
Last active November 8, 2016 12:21
Mozilla Iceweasel 38.5.0: Reader View
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
body {
padding: 64px 0;
max-width: 660px;
margin: 0 auto;
}
@ks7000
ks7000 / aboutReader.css
Created December 29, 2015 01:14
Mozilla Firefox 43.0.3: Reader View
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
body {
padding: 64px 0;
}
@media (max-width: 785px) {
body {
#!/bin/sh
####Licencia de uso###
# Copyright 2016 Jimmy Olano at ks7000.net.ve
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#!/bin/sh
####Licencia de uso###
# Copyright 2016 Jimmy Olano at ks7000.net.ve
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
<?php
// ###Licencia de uso###
// Copyright 2016 Jimmy Olano at ks7000.net.ve
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
@ks7000
ks7000 / installDeps.sh
Created January 7, 2017 22:15
Rutina de instalación de etherpad-lite/bin/installDeps.sh con instrucciones al usuario en castellano.
#!/bin/sh
#-*- coding: utf-8 -*-
#Move to the folder where ep-lite is installed
cd `dirname $0`
#Was this script started in the bin folder? if yes move out
if [ -d "../bin" ]; then
cd "../"
fi
@ks7000
ks7000 / calculadora1.py
Created May 4, 2017 01:31
Aplicación modelo didáctivo para excplicar el registro de eventos en un archivo (bitácora de programa).
class calculadora():
def __init__():
print("\nCalculadora encendida.")
def sumar( a=0, b=0):
print("Suma a={} b={} a+b={}".format(a,b,a+b))
def restar( a=0, b=0):
print("Resta a={} b={} a-b={}".format(a,b,a-b))
@ks7000
ks7000 / calculadora2.py
Created May 4, 2017 01:33
Aplicación didáctica con registro de eventos por pantalla e identificado por cada módulo.
import logging
logging.basicConfig(level=logging.DEBUG)
bita_sum = logging.getLogger("Sum")
bita_res = logging.getLogger("Res")
bita_mul = logging.getLogger("Mul")
bita_div = logging.getLogger("Div")
class calculadora():
@ks7000
ks7000 / large_factorial.py
Created July 7, 2017 02:41
Calculating large factorials with Python 3
import sys
def factorial(num):
'''Return large factorial by Jimmy Olano Sayago
(GNU General Public License v3.0) '''
if num<=1:
return 1
else:
sys.setrecursionlimit(sys.getrecursionlimit()+1)
return num * factorial(num - 1)
@ks7000
ks7000 / Feliz Día del Prorgamador.py
Last active September 13, 2017 20:29
El día 256 de cada año se celebra nuestro día, nosotros los héores anónimos que, por ahora, escribimos código para ordenadores y motorizamos al mundo por medio de los ordenadores (ya no podemos vivir sin ellos) ¡Falta agregar código para años bisiestos!
#!/usr/bin/python
#-*-coding:utf-8-*-
from datetime import datetime
ahora = datetime.now()
#Si el año es bisiesto entonces el día 256 es el 12 de septiembre
if ( ahora.strftime("%j") == "256" ) :
print ("Feliz Día del Programador "+ahora.strftime("%d/%m/%Y"))