Skip to content

Instantly share code, notes, and snippets.

View rolangom's full-sized avatar
💭
John 3:16

Rolando Gómez Tabar rolangom

💭
John 3:16
View GitHub Profile
@YankeeTube
YankeeTube / README.md
Last active September 26, 2024 15:58
Remix + Cloudflare KV Session

Remix On Cloudflare Worker KV Usage Example

This document started with my question on Remix.js discord.

About

This is an example of poor content in the official document, and for customization to use the prefix function, please check the contents written in the comment below.

createWorkersKVSessionStorage original code However, when I saw this code, I thought that this function had no role meaning, and there is a code for customizing it in the comment below.

@apolkosnik
apolkosnik / wincred.py
Created October 7, 2020 21:36 — forked from mrh1997/wincred.py
Retrieve Windows Credential via Python
#!python3
"""
Access windows credentials
"""
from typing import Tuple
import ctypes as CT
import ctypes.wintypes as WT
CRED_TYPE_GENERIC = 0x01
@wrighter
wrighter / download_bars.py
Last active May 5, 2025 10:32
A command line utility to download historical data from Interactive Brokers
#!/usr/bin/env python
import os
import sys
import argparse
import logging
from datetime import datetime, timedelta
from typing import List, Optional
from collections import defaultdict
@mark05e
mark05e / apache-superset-on-windows10.md
Last active January 16, 2025 17:30
Installing Apache Superset on Windows 10

Installing Apache Superset on Windows 10

⚠️ WARN: This doc might be outdated. Use with caution. Only tested with Python v3.7

🙋‍♂️ INFO: If you have fixes/suggestions to for this doc, please comment below.

🌟 STAR: This doc if you found this document helpful.


@RoryKelly
RoryKelly / App.js
Last active January 24, 2022 05:58
App to demonstrate problems using react navigation with react redux
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React from 'react';
import {combineReducers, createStore} from 'redux'
import {Button, Text, View} from "react-native";
import {addNavigationHelpers, NavigationActions, StackNavigator} from "react-navigation";
@0x263b
0x263b / colors.md
Last active January 26, 2025 20:10
Random color from string in javascript

Random color from string in javascript

Consider a list of strings you need to permanently assign a random color.

First you should turn the string into a hash.

var string = "string"
var hash = 0
@mlocati
mlocati / color-scale.js
Last active January 15, 2025 16:07
Javascript color scale from 0% to 100%, rendering it from red to yellow to green
// License: MIT - https://opensource.org/licenses/MIT
// Author: Michele Locati <[email protected]>
// Source: https://gist.github.com/mlocati/7210513
function perc2color(perc) {
var r, g, b = 0;
if(perc < 50) {
r = 255;
g = Math.round(5.1 * perc);
}
else {