Skip to content

Instantly share code, notes, and snippets.

View RonquilloAeon's full-sized avatar
🎯
Focusing

Martin R RonquilloAeon

🎯
Focusing
  • Austin, TX
View GitHub Profile
@abraithwaite
abraithwaite / LinkBankButton.tsx
Last active March 24, 2021 15:31
Simple PlaidLink Example
import * as React from 'react';
import { Button } from 'antd';
import { PlaidLink, usePlaidLink } from 'react-plaid-link';
export const LinkBankButton = () => {
const [token, setToken] = React.useState<string>("");
React.useEffect(() => {
async function loadToken() {
@jimmychu0807
jimmychu0807 / string-conversion.rs
Created November 21, 2019 10:20
Conversion between String, str, Vec<u8>, Vec<char> in Rust
use std::str;
fn main() {
// -- FROM: vec of chars --
let src1: Vec<char> = vec!['j','{','"','i','m','m','y','"','}'];
// to String
let string1: String = src1.iter().collect::<String>();
// to str
let str1: &str = &src1.iter().collect::<String>();
// to vec of byte
@rowlandekemezie
rowlandekemezie / ajaxWithReduxSaga.js
Last active June 26, 2024 09:36
A basic implementation of AJAX with redux-saga
const { applyMiddleware, createStore } = Redux;
const createSagaMiddleware = ReduxSaga.default;
const { put, call } = ReduxSaga.effects;
const { takeLatest } = ReduxSaga;
const { connect, Provider } = ReactRedux;
// GitHub API
const gitHubApi = (username) => {
return fetch(`https://api.github.com/users/${username}`)
.then(response => {
@wolfgangmeyers
wolfgangmeyers / gunicorn-killer.sh
Created October 14, 2015 22:51
how to kill a gunicorn
ps aux | grep gunicorn | awk '{print $2}' | xargs kill -9
anonymous
anonymous / gist:a698d4aa98835d71c440
Created July 16, 2015 17:17
3 line non-hack
import sys
import random
import pygame as pg
# Importing prepare initializes the display.
import prepare
import actors
class App(object):
@cyrexcyborg
cyrexcyborg / relations.py
Last active June 29, 2020 12:32
Flask-Admin-SQLAlchemy one-to-one, one-to-many between two tables
# -*- coding: utf-8 -*-
# Many thanks to http://stackoverflow.com/users/400617/davidism
# This code under "I don't care" license
# Take it, use it, learn from it, make it better.
# Start this from cmd or shell or whatever
# Go to favourite browser and type localhost:5000/admin
import sys
from flask import Flask
from flask.ext.sqlalchemy import SQLAlchemy
from flask.ext.admin import Admin