Skip to content

Instantly share code, notes, and snippets.

View soopyc's full-sized avatar
:shipit:
shipping definitely quality code 27 hours a day

Cassie Cheung soopyc

:shipit:
shipping definitely quality code 27 hours a day
View GitHub Profile
#!/usr/bin/env python3
# Maintainer: soopyc (@cassie@astro.soopy.moe)
# SPDX-License-Identifier: CC0-1.0
a = []
b = []
for color in range(40, 48):
a.append(f"\x1b[{color}m {color} ")
for color in range(100, 108):
b.append(f"\x1b[{color}m {color} ")

Keybase proof

I hereby claim:

  • I am soopyc on github.
  • I am kcomain (https://keybase.io/kcomain) on keybase.
  • I have a public key whose fingerprint is 7595 B36D F6C2 E95E 10E5 2866 2932 BA0F A3DD D7D6

To claim this, I am signing this object:

@soopyc
soopyc / keybase.md
Last active September 27, 2022 10:17
Keybase verification
@soopyc
soopyc / keybase.old.md
Last active November 7, 2021 09:54
Keybase verification (outdated)

outdated. see keybase.md for more details

@soopyc
soopyc / gist:21a0e27462ee1d0dbc57c3e9ceebdadb
Created May 25, 2019 13:32 — forked from solenoid/gist:1372386
javascript ObjectId generator
var mongoObjectId = function () {
var timestamp = (new Date().getTime() / 1000 | 0).toString(16);
return timestamp + 'xxxxxxxxxxxxxxxx'.replace(/[x]/g, function() {
return (Math.random() * 16 | 0).toString(16);
}).toLowerCase();
};
@soopyc
soopyc / index.html
Last active March 7, 2019 08:42
Hangman// source https://jsbin.com/mavito // original author Kenny Cheung, Steve Munro, PLKSHS ICT team
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Hangman</title>
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery-2.1.4.js"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Hangman</title>
<style id="jsbin-css">
* {
font-family: "Courier New";
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery-2.1.4.js"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Hangman</title>
<style id="jsbin-css">
* {
font-family: "Courier New";