Skip to content

Instantly share code, notes, and snippets.

View ccmmff11447722's full-sized avatar
💭
When you play with fire you burnn in hell

completeDizazter ccmmff11447722

💭
When you play with fire you burnn in hell
  • @BuildingGlobally
  • below your
View GitHub Profile
@ccmmff11447722
ccmmff11447722 / playground.rs
Created August 7, 2019 09:01 — forked from rust-play/playground.rs
Code shared from the Rust Playground
struct Foo<T, C> where C: Fn() -> T {
make_t: C,
value: Option<T>,
}
impl<T, C> Foo<T, C> where C: Fn() -> T {
fn new(make_t: C) -> Foo<T, C> {
Foo {
make_t,
value: None
@ccmmff11447722
ccmmff11447722 / playground.rs
Last active August 9, 2019 15:34 — forked from rust-play/playground.rs
Code shared from the Rust Playground
struct Foo<T, C> where C: Fn() -> T {
make_t: C,
value: Option<T>,
}
impl<T, C> Foo<T, C> where C: Fn() -> T {
fn new(make_t: C) -> Foo<T, C> {
Foo {
make_t,
value: None
#!/usr/bin/env python3
""" ASF OAuth example in Python 3"""
import cgi
import os
import requests
import urllib
import uuid
def init_oauth():