Skip to content

Instantly share code, notes, and snippets.

(ns apples.core
(:require [play-clj.core :refer :all]
[play-clj.g2d :refer :all]
[play-clj.math :refer :all]))
(declare apples main-screen)
(def speed 14)
(defn- get-direction []
(cond
@clonekim
clonekim / multipart_upload.go
Created June 8, 2020 23:53 — forked from mattetti/multipart_upload.go
Example of doing a multipart upload in Go (golang)
package main
import (
"bytes"
"fmt"
"io"
"log"
"mime/multipart"
"net/http"
"os"
@clonekim
clonekim / svg-drag.js
Created November 18, 2021 14:45 — forked from hashrock/svg-drag.js
SVG Drag and Drop with React Hooks
import React from "react";
import ReactDOM from "react-dom";
const Circle = () => {
const [position, setPosition] = React.useState({
x: 100,
y: 100,
active: false,
offset: { }
});
@clonekim
clonekim / test_daemon.py
Created January 2, 2023 06:58 — forked from komasaru/test_daemon.py
Python script to do a process as a daemon.
#!/usr/local/bin/python3.6
import datetime
import sys
import traceback
from daemon import DaemonContext
from os import path
from time import sleep
from lockfile.pidlockfile import PIDLockFile