Skip to content

Instantly share code, notes, and snippets.

View rnovec's full-sized avatar
🏡
Working remotely

Raúl Novelo rnovec

🏡
Working remotely
View GitHub Profile

Despligue de una API en entorno productivo (notas)

SSH

Conectarse por SSH con la llave pem

ssh -i SERVER_KEY.pem USER@SERVER_IP

Generar claves SSH para clonar repositorios de manera segura

@rnovec
rnovec / pdf-report.py
Created August 2, 2021 21:45 — forked from chris1610/pdf-report.py
PDF Report Generation - pbpython.com
"""
Generate PDF reports from data included in several Pandas DataFrames
From pbpython.com
"""
from __future__ import print_function
import pandas as pd
import numpy as np
import argparse
from jinja2 import Environment, FileSystemLoader
from weasyprint import HTML
@rnovec
rnovec / UploadExcel.vue
Created July 30, 2021 23:24
Upload Excel and convert to JSON with Vue.js 2
<template>
<!-- REPLACE WITH YOUR INPUT FILE TAG/COMPONENT -->
<div>
<b-field class="m-4">
<b-upload @input="handleUpload" v-model="dropFiles" multiple drag-drop expanded>
<section class="section">
<div class="content has-text-centered">
<p>
<b-icon icon="upload" size="is-large"></b-icon>
</p>
@rnovec
rnovec / App.vue
Created April 14, 2021 22:31 — forked from shreyasmalewar/App.vue
Using Google Maps API for Location Picker with Vue 2
<template>
<div id="app">
<GmapMap
:center="center"
:zoom="18"
map-style-id="roadmap"
:options="mapOptions"
style="width: 100vmin; height: 50vmin"
ref="mapRef"
@click="handleMapClick"
@rnovec
rnovec / launch.json
Created November 10, 2020 03:49
Debbuger config file for Django app
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Python: Django",
"type": "python",
"request": "launch",
theBoard = {'7': ' ', '8': ' ', '9': ' ',
'4': ' ', '5': ' ', '6': ' ',
'1': ' ', '2': ' ', '3': ' '}
board_keys = []
for key in theBoard:
board_keys.append(key)
''' We will have to print the updated board after every move in the game and

Git Tags

  • Create a tag

    git tag -a v2.1 -m "Edit and delete contacts"
    
  • list tags with description

      git tag -n
    
@rnovec
rnovec / cod3breaker.py
Created October 25, 2020 16:26
Snippet for Geometry Dash Vault of Secret - COD3BREAKER
def cod3breaker(nums):
code = str(nums[1] - nums[0]) + str(nums[2] - nums[1]) + str(nums[3] - nums[2]) + str(nums[4] - nums[3]) + str(nums[5] - nums[4])
print(code)
cod3breaker([60, 78, 80, 161, 163, 167])

Integer Types

The following table provides the details of standard integer types with their storage sizes and value ranges

Type Storage Size Value range
char 1 byte -128 to 127 or 0 to 255
unsigned char 1 byte 0 to 255
char 1 byte -128 to 127 or 0 to 255