Skip to content

Instantly share code, notes, and snippets.

View chee's full-sized avatar
🍕
partying

chee chee

🍕
partying
View GitHub Profile
@pesterhazy
pesterhazy / building-sync-systems.md
Last active July 22, 2024 15:06
Building an offline realtime sync engine

So you want to write a sync system for a web app with offline and realtime support? Good luck. You might find the following resources useful.

Overview articles

@DanB91
DanB91 / README.txt
Last active November 28, 2022 04:57
Playdate Zig starting point
THIS GIST IS OUT OF DATE! Please use my new project template here to get started with Zig on Playdate:
https://github.com/DanB91/Zig-Playdate-Template
The rest of this is preservied for historical reasons:
This is a small snippet of some code to get you started for developing for the Playdate on Zig. This code should be used as a starting point and may not compile without some massaging. This code has only been tested out on macOS and you'll need to modify the addSharedLibrary() portion of build.zig to output a .dll or .so instead of a .dylib, depending on you platform.
This code will help you produce both an executable for the Playdate simulator and also an executable that actually run on the Playdate hardware.
@jinwoo1225
jinwoo1225 / PyQt6.sh
Created August 22, 2021 07:41
Install PyQt6 on macOS for M1 (Apple Silicon) Devices
#!/bin/bash
# Assumes brew and python are installed
brew install qt@6 llvm cmake ninja git
# Setup environment
mkdir -p ~/.pyqt6; cd ~/.pyqt6
curl https://files.pythonhosted.org/packages/a0/07/0ae4f67768c1150af851572fae287aeaf956ed91b3b650b888a856274ae4/PyQt6-6.1.1.tar.gz --output PyQt6-6.1.1.tar.gz
curl https://files.pythonhosted.org/packages/50/24/743c4dd6a93d25570186a7940c4f072db1cf3fa919169b0ba598fcfc820a/PyQt6_sip-13.1.0.tar.gz --output PyQt6_sip-13.1.0.tar.gz
curl https://files.pythonhosted.org/packages/ea/5e/4c954451984d00dfc051eab5c4b40453923a85f5a0dfa9678511d06eec5e/PyQt6_3D-6.1.1.tar.gz --output PyQt6_3D-6.1.1.tar.gz
curl https://files.pythonhosted.org/packages/b9/ac/9c545186f3125b0fb02359938bddde0167344f3d4e14aee17fa122b5287a/PyQt6_Charts-6.1.1.tar.gz --output PyQt6_Charts-6.1.1.tar.gz
@calebccff
calebccff / mainline.md
Last active June 30, 2020 20:57
pmOS Mainline Building for oneplus sdm845

This gist it deprecated and may be outdated, latest instructions are on the wiki

pmbootstrap init pick oneplus -> enchilada/fajita. Pick any WM/DE you like, the following have been tested and are functional.

  • Gnome
  • Plasma Mobile - unstable, can sometimes crash out and reboot to crashdump mode
  • Plasma desktop
  • Phosh (fix scaling by setting scale=3 in /etc/phoc/phosh.ini)
  • Mate
  • Weston

Implicit integers for JavaScript

This proposal is an alternative to “Integer: Arbitrary precision integers in JavaScript” by Daniel Ehrenberg, but it also builds on his work.


Everything mentioned here is work in progress. It is not sure that these ideas will work out:

  • They may break the web.
  • They may turn out to be too complicated/user-unfriendly.
@chee
chee / index.js
Created May 12, 2016 01:59
curl my ip
require('http').createServer((request, response) => {
response.statusCode = 200
response.setHeader('Content-Type', 'text/plain')
response.end(request.connection.remoteAddress)
}).listen(80)
Array.apply(0,Array(123)).map(String.fromCharCode).slice(97)
i=96,r=[];while(i++<122)r.push(String.fromCharCode(i));r
String.fromCharCode[b='apply'](0,(a=Array)[b](0,a(123)).map(Date.call,Number)).slice(97)
eval('i=97;String.fromCharCode('+Array(26).join('i++,')+'i)')
@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active July 7, 2024 19:32
A badass list of frontend development resources I collected over time.
@LeaVerou
LeaVerou / dabblet.css
Created March 19, 2013 17:35
Change an SVG file through the URL hash
/**
* Change an SVG file through the URL hash
* Warning: Does NOT work on WebKit.
*/
body {
background: silver;
}
.logo {