- Download & Install Sublime Text 3.2.2 Build 3211
- Visit https://hexed.it/
- Open file select sublime_text.exe
- Offset
0x8545
: Original84
->85
- Offset
0x08FF19
: Original75
->EB
- Offset
0x1932C7
: Original75
->74
(remove UNREGISTERED in title bar, so no need to use a license)
#!/bin/bash | |
set -euo pipefail | |
IFS=$'\n\t' | |
# From https://unix.stackexchange.com/a/18631/56290 | |
# Rotate even pages by 180 degrees, don't rotate odd pages. | |
pdftk A=infile.pdf shuffle Aoddnorth Aevensouth output outfile.pdf |
function uneval(o) { | |
switch (typeof o) { | |
case "undefined": return "(void 0)"; | |
case "boolean": return String(o); | |
case "number": return String(o); | |
case "string": return `"${o.replace(/\W/gi, function(_) { return `\\u${(0x10000 + _.charCodeAt(0)).toString(16).slice(1)}` })}"`; | |
case "function": return `(${o.toString()})`; | |
case "object": | |
if (o == null) return "null"; | |
let ret, type = Object.prototype.toString.call(o).match(/\[object (.+)\]/); |
I've been deceiving you all. I had you believe that Svelte was a UI framework — unlike React and Vue etc, because it shifts work out of the client and into the compiler, but a framework nonetheless.
But that's not exactly accurate. In my defense, I didn't realise it myself until very recently. But with Svelte 3 around the corner, it's time to come clean about what Svelte really is.
Svelte is a language.
Specifically, Svelte is an attempt to answer a question that many people have asked, and a few have answered: what would it look like if we had a language for describing reactive user interfaces?
A few projects that have answered this question:
Download and Install Emscripten
- My preferred installation location is
/home/user
- Get the latest sdk:
git clone https://github.com/emscripten-core/emsdk.git
- Enter the cloned directory:
cd emsdk
- Checkout main:
git checkout main
- Install the lastest sdk tools:
./emsdk install latest
- Activate the latest sdk tools:
./emsdk activate latest
- Activate path variables:
source ./emsdk_env.sh
from __future__ import print_function | |
import struct | |
import gdb | |
def log(): | |
# Get the inferior. | |
try: |
This document contains some ideas for additions to the Nix language.
The Nix package manager, Nixpkgs and NixOS currently have several problems:
- Poor discoverability of package options. Package functions have
function arguments like
enableFoo
, but there is no way for the Nix UI to discover them, let alone to provide programmatic ways to
# An example to get the remaining rate limit using the Github GraphQL API. | |
import requests | |
headers = {"Authorization": "Bearer YOUR API KEY"} | |
def run_query(query): # A simple function to use requests.post to make the API call. Note the json= section. | |
request = requests.post('https://api.github.com/graphql', json={'query': query}, headers=headers) | |
if request.status_code == 200: |
typedef vector<int> vi; | |
typedef vector<vi> vvi; | |
#define pb push_back | |
#define MAX 100005 | |
// C++ implementation of tarjan's algorithm for SCC | |
// foundat: analogous to time at which the vertex was discovered | |
// disc: will contain the foundat value of ith vertex(as in input graph) | |
// low: will contain the lowest vertex(foundat value) reachable from ith vertex(as in input graph) | |
// onstack: whether the vertex is on the stack st or not | |
// scc: will contain vectors of strongly connected vertices |
A non-exhaustive list of WebGL and WebGPU frameworks and libraries. It is mostly for learning purposes as some of the libraries listed are wip/outdated/not maintained anymore.
Name | Stars | Last Commit | Description |
---|---|---|---|
three.js | ![GitHub |