Skip to content

Instantly share code, notes, and snippets.

View Whistler092's full-sized avatar

Ramiro Andrés Bedoya E. Whistler092

View GitHub Profile
@Whistler092
Whistler092 / memofichas_sql.txt
Last active August 9, 2018 05:25
Memofichas
Elaborar su memo ficha de las sentencias más usuales en sql –oracle con el fin de tener un soporte para cada práctica realizada, donde las mínimas son las propuestas pero usted podrá tener otras que consideren necesarias. Se requiere que el estudiante realice el siguiente trabajo:
Investigar cada palabra o sentencia y escribir su sintaxis. Puede ir acompañado de un ejemplo.
• NOT NULL
La condición IS NOT NULL es usada para testear si un valor es NULL. Es una condición usada en Oracle, Sentencias SQL y código PLSQL.
EJ:
SELECT *
@Whistler092
Whistler092 / localLog.cs
Created August 3, 2018 20:10
Easy way to save exception on file
internal static void LocalLog(Exception trace)
{
try
{
string InfoText = string.Empty;
if (trace != null)
{
InfoText += Environment.NewLine + Newtonsoft.Json.JsonConvert.SerializeObject(trace, Newtonsoft.Json.Formatting.Indented)
+ Environment.NewLine;
@Whistler092
Whistler092 / internal class ApiCalls.cs
Last active June 29, 2018 13:46
ApiCalls Using C# y RestSharp
using Newtonsoft.Json;
using RestSharp;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Configuration;
using System.Net;
namespace NodeClientAdmin
{
@Whistler092
Whistler092 / ProcesosEnParalelo.cs
Last active June 6, 2018 12:10
Guia de fundamentos de js
public async Task<ActionResult> ProcesosEnParalelo()
{
var stopWatch = new StopWatch();
stopWatch.Start();
var tarea1 = Proceso1();
var tarea2 = Proceso2("Felipe");
@Whistler092
Whistler092 / Temas ESP.txt
Created May 5, 2018 00:36
ESP8266 links
http://blog.jacagudelo.com/
Conectar Display
https://www.losant.com/blog/how-to-connect-lcd-esp8266-nodemcu
http://blogmasterwalkershop.com.br/embarcados/nodemcu/nodemcu-utilizando-com-display-lcd-16x2/
http://embedded-lab.com/blog/tutorial-3-connecting-oled-display-esp8266/
https://naylampmechatronics.com/blog/35_Tutorial--LCD-con-I2C-controla-un-LCD-con-so.html
@Whistler092
Whistler092 / kittenbot_ext.js
Last active March 24, 2018 08:02
kittenbot_ext.js
new (function() {
var ext = this;
var fs = require('fs');
// Cleanup function when the extension is unloaded
ext._shutdown = function ()
{
for (pin = 2; pin < 28; pin++)
{
if (fs.existsSync("/sys/class/gpio/gpio" + pin))
@Whistler092
Whistler092 / recurrent
Created March 21, 2018 18:36
take bacup from container
crontab -e
0 23 * * * /root/take_backup.sh
@Whistler092
Whistler092 / .env
Created January 30, 2018 18:51
Docker with Mysql
MYSQL_DATABASE=
MYSQL_USER=root
MYSQL_PASSWORD=
MYSQL_ROOT_PASSWORD=
MYSQL_PORT=3306
Movile Web Vs Native Apps
Native Apps
87%
- Push Notifications vuelve a atraer a los usuarios
- Icono en el Home Screen hace el acceso facil
- Acceso a caracteristicas nativas del dispositivo como la camara
- Posibilidad de trabajar offline
Dificultad de hacer aplicaciones nativas
@Whistler092
Whistler092 / swap.sh
Created October 3, 2017 21:50 — forked from indatawetrust/swap.sh
swap
sudo swapon -s
sudo fallocate -l 4G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile