Skip to content

Instantly share code, notes, and snippets.

- After making changes, ALWAYS make sure to start up a new server so I can test it.
- Always look for existing code to iterate on instead of creating new code.
- Do not drastically change the patterns before trying to iterate on existing patterns.
- Always kill all existing related servers that may have been created in previous testing before trying to start a new server.
- Always prefer simple solutions
- Avoid duplication of code whenever possible, which means checking for other areas of the codebase that might already have similar code and functionality
- Write code that takes into account the different environments: dev, test, and prod
- You are careful to only make changes that are requested or you are confident are well understood and related to the change being requested
- When fixing an issue or bug, do not introduce a new pattern or technology without first exhausting all options for the existing implementation. And if you finally do this, make sure to remove the old implementation afterwards so we d
@bytesByHarsh
bytesByHarsh / dino_game.ino
Created July 10, 2021 07:15
The T-Rex Game (Chrome Dino) in Arduino using OLED Display
/**
* Author: Harsh Mittal
* Created: 10.07.2021
* Github: www.github.com/harshmittal2210
* Email: [email protected]
*
* (c) Copyright by Harsh Mittal.
**/
// Include
@e3w2q
e3w2q / qmk_install_guide_msys2.md
Last active September 8, 2024 14:45 — forked from MarchRaBBiT/qmk_install_guide_msys2.md
QMKビルド環境の構築(Windows QMK MSYS編)

QMKファームウェアビルド構築手順(Windows QMK MSYS編)

[QMK Firmware][1]のビルド環境をQMK MSYSを用いて構築する手順です。

QMK MSYSインストーラのダウンロード

まずはQMK MSYSのリリースページからインストーラのダウンロードを行います。

  • Windows用インストーラ
    • QMK_MSYS.exe
#!/usr/bin/env python
import networkx as nx
import matplotlib.pyplot as plt
import math
from random import random
from numpy import arange
N = 1000
K = 5
@shikajiro
shikajiro / DBHelper.java
Created October 17, 2013 06:37
DBの作成、挿入、カーソル取得を使ったListVIewの使い方。
package com.example.dhw;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteDatabase.CursorFactory;
import android.database.sqlite.SQLiteOpenHelper;
public class DBHelper extends SQLiteOpenHelper {
public DBHelper(Context context, String name, CursorFactory factory, int version) {