Skip to content

Instantly share code, notes, and snippets.

View clark-john's full-sized avatar
💭
inactive

Clark clark-john

💭
inactive
View GitHub Profile
@clark-john
clark-john / GoogleFonts.txt
Last active January 16, 2026 02:42
Google font links for css import rule
Google Fonts Links for CSS import rule
Inter
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');
Arimo
@import url('https://fonts.googleapis.com/css2?family=Arimo:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&display=swap');
Montserrat
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@clark-john
clark-john / index.html
Last active April 22, 2025 20:20
Yes or No
<head>
<script defer src="main.js"></script>
</head>
@clark-john
clark-john / Fetching (Composition).vue
Last active August 31, 2022 09:54
Some fetching and error handling with vue and axios
<script setup>
import axios from 'axios'
import { ref, onMounted } from 'vue'
const fetchData = ref('')
const res = ref('')
const err = ref('')
onMounted(async () => {
const response = await axios({
@clark-john
clark-john / Fetch.java
Last active August 31, 2022 10:02
Fetching a url with Java
import static java.net.http.HttpClient.*;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.http.HttpResponse.BodyHandlers;
import java.net.URI;
import java.time.Duration;
import java.io.IOException;
public class Fetch {
@clark-john
clark-john / CSharpStart.sublime-snippet
Last active July 18, 2022 13:21
C# Main class and method snippet for Sublime Text
<snippet>
<!-- Regex Thing from C++ Snippet -->
<content><![CDATA[
internal class ${TM_FILENAME/(.+)\..+|.*/$1/:name}
{
static void Main(string[] args)
{
$2
}
}
@clark-john
clark-john / gistcreate.bat
Last active June 5, 2022 15:50
gh gist create scripts
@echo off
:: Requirements: GitHub CLI
set /p gist_files="Enter a file/files for your gist: "
set /p gist_description="Enter gist description: "
gh gist create %gist_files%^
-pd "%gist_description%"
@clark-john
clark-john / publish.bat
Last active June 5, 2022 15:04
git repo create scripts
@echo off
:: Requirements: Git and GitHub CLI
set /p repo_name="Enter repo name: "
set /p repo_description="Enter repo description: "
git init
git branch -m main
git add .
git commit -m "initial commit"
@clark-john
clark-john / get_github_followers.py
Created May 12, 2022 01:13
Get GitHub followers
from requests import get
from json import loads
from asyncio import run
async def get_user():
user = input("Enter user: ")
return get(f"https://api.github.com/users/{user}")
async def main():
response = await get_user()
@clark-john
clark-john / rainbowcolors.json
Last active April 14, 2022 01:09
RainbowBrackets color schemes
{
"clark": [
"#FF0512",
"#FF8005",
"#FFdc05",
"#79ff05",
"#05ff95",
"#0537ff",
"#700cf8"
],
@clark-john
clark-john / keybindings.json
Last active April 2, 2022 02:06
My own vscode keybindings
[
{
"key": "ctrl+shift+d",
"command": "editor.action.duplicateSelection"
},
{
"key": "ctrl+shift+up",
"command": "editor.action.moveLinesUpAction",
"when": "editorTextFocus && !editorReadonly"
},