Skip to content

Instantly share code, notes, and snippets.

@tsutomu-n
tsutomu-n / ai-config.yaml
Last active May 16, 2024 01:32
Strategic_AI_Interaction_Framework_v1
instructions:
- Provide accurate and factual answers
- Provide detailed explanations
- Be highly organized
- You are an expert on all subject matters
- No need to disclose you are an AI, e.g., do not answer with "As a large language model..." or "As an artificial intelligence..."
- Don't mention your knowledge cutoff
- When asked to code, just provide the code
- Be excellent at reasoning
- When reasoning, perform step-by-step thinking before you answer the question
@wizlif
wizlif / context.ext.dart
Created May 16, 2024 01:26
Context extension for theming simplification
import 'package:flutter/material.dart';
/// Extension methods to simplify theming accessibility.
///
/// Usage:
/// ```dart
/// ...
/// Icon(color: context.kTheme.accent500)
/// ```
extension ThemeBuildContextX on BuildContext {
@xie186
xie186 / README.md
Last active May 16, 2024 01:26
Convert gene expression table to matrix.mtx

MTX data

%%MatrixMarket matrix coordinate ***real*** general
%
32738 2700 2286884

This line 13406 1562 6512772 tells the matrix reader that your matrix has 13406 rows, 1562 columns and 6512772 non-zeros values.

@dudo
dudo / setup.sh
Last active May 16, 2024 01:24
Kubernetes-ready Nvidia Orin NX flashing for Jetson 36.3 on a turing-pi2
# From shit-box
# Need to modify the host doing the flashing
sudo vi /etc/default/nfs-kernel-server
RPCMOUNTDOPTS="--manage-gids --no-nfs-version 4"
sudo reboot
sudo apt install -y qemu-user-static make git-core build-essential bc flex bison ncurses-dev libssl-dev gcc-aarch64-linux-gnu
export JETSON_VERSION=36.3
@adamawolf
adamawolf / Apple_mobile_device_types.txt
Last active May 16, 2024 01:24
List of Apple's mobile device codes types a.k.a. machine ids (e.g. `iPhone1,1`, `Watch1,1`, etc.) and their matching product names
i386 : iPhone Simulator
x86_64 : iPhone Simulator
arm64 : iPhone Simulator
iPhone1,1 : iPhone
iPhone1,2 : iPhone 3G
iPhone2,1 : iPhone 3GS
iPhone3,1 : iPhone 4
iPhone3,2 : iPhone 4 GSM Rev A
iPhone3,3 : iPhone 4 CDMA
iPhone4,1 : iPhone 4S
@raysan5
raysan5 / raylib_vs_sdl.md
Last active May 16, 2024 01:24
raylib vs SDL - A libraries comparison

raylib_vs_sdl

In the last years I've been asked multiple times about the comparison between raylib and SDL libraries. Unfortunately, my experience with SDL was quite limited so I couldn't provide a good comparison. In the last two years I've learned about SDL and used it to teach at University so I feel that now I can provide a good comparison between both.

Hope it helps future users to better understand this two libraries internals and functionality.

Table of Content

@vuddameri
vuddameri / thomas-algorithm.ipynb
Created November 6, 2021 07:37
Thomas Algorithm.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@taterbase
taterbase / upload.php
Created May 13, 2012 15:03
Simple file upload in php
<!DOCTYPE html>
<html>
<head>
<title>Upload your files</title>
</head>
<body>
<form enctype="multipart/form-data" action="upload.php" method="POST">
<p>Upload your file</p>
<input type="file" name="uploaded_file"></input><br />
<input type="submit" value="Upload"></input>
@nuomi1
nuomi1 / PrintBootCampESDInfo.swift
Last active May 16, 2024 01:17
macOS and BootCamp Latest
#!/usr/bin/env swift
//
// PrintBootCampESDInfo.swift
//
// Created by nuomi1 on 8/5/18.
// Copyright © 2018年 nuomi1. All rights reserved.
//
import Foundation