Skip to content

Instantly share code, notes, and snippets.

@kevincolten
kevincolten / image2pointcloud.ipynb
Last active January 4, 2024 18:08
imageortext2mesh.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kevincolten
kevincolten / post.md
Last active October 24, 2023 00:11
@post Hosting Multiple Repositories With GitHub Pages

GitHub Pages is great for building a personal or project website. It'll default to http://username.github.io, or you can even use your own custom domain name from services like Namecheap, which I will write about in another post soon.

So you set up your GitHub Page for yourself or project, but what if you want to show off some of your other projects you are working on. You can go the poor man's route, and simply just copy everything from another repository into a folder in your username.github.io repository, commit and push the changes to GitHub, and you'll be able to navigate to http://username.github.io/project.

But this comes with some seriously inconvienent and non-conventional drawbacks, such as duplication of code across repositories and manually copy/paste-ing everytime changes are made to update your hosted codebase. Good luck maintaining that.

The other

@kevincolten
kevincolten / template.jinja2
Last active July 15, 2020 15:07
Certificate Template
<%namespace name='static' file='/static_content.html'/>
<%!
from django.utils.translation import ugettext as _
from student.models import anonymous_id_for_user
from opaque_keys.edx.keys import CourseKey
from hashlib import sha256
from datetime import date
%>
<%
# set doc language direction
@kevincolten
kevincolten / index.md
Last active July 1, 2020 13:35
Vandelay Software Developer Test

Vandelay Education Software Developer Challenge

Build a SQL GUI in the browser that can save queries

Documentation

You can refer to this old SQL workshop for documentation on the sample sqlite database. Play close attention to the Online SQL Interpreter, also located here. That's similar to part of what we want to build!

This file has been truncated, but you can view the full file.
# hpHosts - Ad and Tracking servers only
#
# The following are hosts in the hpHosts database with the ATS classification ONLY.
# This file will NOT protect you against malicious domains
#
127.0.0.1 localhost #IPv4 localhost
::1 localhost #IPv6 localhost
#
# AD SERVERS START HERE
@kevincolten
kevincolten / index.html
Created February 5, 2020 03:40
Matrix CSS
<div class="matrix">
<div class="d1 c1 de" style="left:6%;">circl<span>e</span>codingaca<span>d</span>emy</div>
<div class="d3 f1" style="left:12%;">circl<span>e</span>codingaca<span>d</span>emy</div>
<div class="d1 f2 c1" style="left:18%;">circl<span>e</span>codingaca<span>d</span>emy</div>
<div class="d2 f1" style="left:24%;">circl<span>e</span>codingaca<span>d</span>emy</div>
<div class="d4 c3 de" style="left:30%;">circl<span>e</span>codingaca<span>d</span>emy</div>
<div class="d2 c1" style="left:36%;">circl<span>e</span>codingaca<span>d</span>emy</div>
<div class="d3 f2 c1" style="left:36%;">circl<span>e</span>codingaca<span>d</span>emy</div>
<div class="d1 c1" style="left:42%;">circl<span>e</span>codingaca<span>d</span>emy</div>
<div class="d3 de" style="left:48%;">circl<span>e</span>codingaca<span>d</span>emy</div>
@kevincolten
kevincolten / areaCodes.json
Created October 24, 2019 20:52
Geocoded Area Codes
{
"date_updated": "2012-04-18",
"area_codes": [
{
"area_code": 201,
"city": "Jersey city, NJ",
"lat": 40.728157499999988,
"lng": -74.077641700000001
},
{
@kevincolten
kevincolten / .gitignore
Last active August 29, 2019 17:19
gclean.sh: Figure out the default branch on GitHub and remove merged branches locally and remotely. killPort.sh: Pass in a port number and close process living on that port.
.DS_Store
@kevincolten
kevincolten / index.html
Last active July 25, 2019 20:22
Calculator
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
html {
@kevincolten
kevincolten / Readme.md
Last active May 14, 2019 16:13
Compile arduino sketch to assembly on a Mac
  1. Export .ino file and rename to .cpp

  2. Add #include <Arduino.h> to top of the file

  3. run

    avr-g++    -I /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/ -I /Applications/Arduino.app/Contents/Java//hardware/arduino/avr/variants/standard    -x c++  -MMD -c -mmcu=atmega328p -Wall -DF_CPU=16000000L  -Wall  -Os SR04_Example.cpp
  4. avr-objdump -S SR04_Example.o &gt;&gt; SR04_Example.lst