Skip to content

Instantly share code, notes, and snippets.

View charlierm's full-sized avatar

Charlie Mills charlierm

View GitHub Profile

Keybase proof

I hereby claim:

  • I am charlierm on github.
  • I am charlierm (https://keybase.io/charlierm) on keybase.
  • I have a public key whose fingerprint is 0E4B 999A 2C98 1E90 4762 86A7 39E4 0F6C 2F18 8FCA

To claim this, I am signing this object:

@charlierm
charlierm / asd.sad
Created September 20, 2019 14:23
asdasdasd sad sad ads adds dasd and
asd
# -*- coding: utf-8 -*-
import requests
def handler(context, event):
return "arse candle"
@charlierm
charlierm / twatbag.py
Last active August 29, 2015 14:06
Tinder autoliker script
import Queue
import threading
import tinderClient
import json
import logging
logging.basicConfig(level=logging.DEBUG)
PRODUCER_THREADS = 3
CONSUMER_THREADS = 10
@charlierm
charlierm / matcher.py
Created August 17, 2014 20:30
Tinder automatcher
import Queue
import threading
import tinderClient
import json
import logging
logging.basicConfig(level=logging.DEBUG)
PRODUCER_THREADS = 5
CONSUMER_THREADS = 10
#include <stdio.h>
#include <stdlib.h>
struct SLNode {
struct SLNode *next;
long value;
};
void sl_push_front(struct SLNode **list, long v){
//Create new node, add the value.
#include <iostream>
using namespace std;
class Singleton
{
public:
static Singleton* getSingleton();
int getValue();
void setValue(int i);
public class main{
public static void main(String[] args) {
//WORKS
SingletonDemo s = SingletonDemo.getInstance();
s.setValue(12);
//FAILS
SingletonDemo ss = SingletonDemo.getInstance();
System.out.println(ss.getValue());
}
}
@charlierm
charlierm / linked_list.cpp
Last active April 25, 2024 09:11
Linked list written in c++
#include <iostream>
#include <cstdlib>
class Node
{
public:
Node* next;
int data;
};
@charlierm
charlierm / LinkedList.java
Created May 31, 2013 21:08
Thread safe linked list written in java
import java.util.Iterator;
public class LinkedList<T>{
private Node head;
private int length;
public LinkedList(){
this.length = 0;