Skip to content

Instantly share code, notes, and snippets.

@voluntas
voluntas / webrtc.rst
Last active May 21, 2024 05:35
WebRTC コトハジメ
@voluntas
voluntas / webrtc.rst
Last active May 21, 2024 05:35
WebRTC の未来
@EwoutH
EwoutH / Snapdragon_7_8_series_2024.md
Last active May 21, 2024 05:35
Qualcomm Snapdragon 7 and 8 series spec comparison (2024)

| SoC | Snapdragon 8 Gen 3
(SM8650) | Snapdragon 8s Gen 3
(SM8635) | Snapdragon 8 Gen 2
(SM8550) | Snapdragon 7+ Gen 3
(SM7675-AB) | Snapdragon 7+ Gen 2
(SM7475-AB) | Snapdragon 7 Gen 3
(SM7550-AB) | |----------------------|:---------------------------------------

@OrionReed
OrionReed / dom3d.js
Last active May 21, 2024 05:33
3D DOM viewer, copy-paste this into your console to visualise the DOM topographically.
// 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks.
// You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/)
(() => {
const SHOW_SIDES = false; // color sides of DOM nodes?
const COLOR_SURFACE = true; // color tops of DOM nodes?
const COLOR_RANDOM = false; // randomise color?
const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com)
const MAX_ROTATION = 180; // set to 360 to rotate all the way round
const THICKNESS = 20; // thickness of layers
const DISTANCE = 10000; // ¯\\_(ツ)_/¯
@pgorsira
pgorsira / deploy
Last active May 21, 2024 05:31
Deploying to Artifactory with Python requests library
artifactory_url = 'artifactory.com' # your artifactory instance
artifactory_username = 'username' # your username
artifcatory_password = 'password' # your password
content_type = 'application/java-archive' # your content-type header
filename = 'file' # your file to upload (in current working directory)
url = artifactory_url + '/' + filename # where we want the file stored on artifactory
# checksums are useful for making sure the upload was successful
headers = {'content-type': content_type,
@kjellski
kjellski / sshd_config
Created July 6, 2013 18:59
This is an example real-world sshd_config with a nice little example at the end. A match clause that enables different setting for specific ranges than general settings...
# This is the sshd server system-wide configuration file. See
# sshd_config(5) for more information.
# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin
# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented. Uncommented options change a
# default value.
@adammyhre
adammyhre / Preconditions.cs
Last active May 21, 2024 05:28
Unity Preconditions Class
using System;
public class Preconditions {
Preconditions() { }
public static T CheckNotNull<T>(T reference) {
return CheckNotNull(reference, null);
}
public static T CheckNotNull<T>(T reference, string message) {
@baymaxium
baymaxium / content.md
Created October 18, 2017 08:01
区块链,将如何重新定义世界?

原文:硅谷密探

硅谷Live / 实地探访 / 热点探秘 / 深度探讨

( Image : Killzone: Shadow Fall Review by Zac Davis )

@belaw
belaw / fork.reg
Last active May 21, 2024 05:21
Fork Git Client Windows Explorer Integration
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\directory\background\shell\git_fork]
@="Open in &Fork"
"Icon"=hex(2):25,00,4c,00,4f,00,43,00,41,00,4c,00,41,00,50,00,50,00,44,00,41,\
00,54,00,41,00,25,00,5c,00,46,00,6f,00,72,00,6b,00,5c,00,46,00,6f,00,72,00,\
6b,00,2e,00,65,00,78,00,65,00,2c,00,30,00,00,00
[HKEY_CLASSES_ROOT\directory\background\shell\git_fork\command]
@=hex(2):22,00,25,00,4c,00,4f,00,43,00,41,00,4c,00,41,00,50,00,50,00,44,00,41,\
@agoose77
agoose77 / flake.nix
Last active May 21, 2024 05:18
Python virtualenvironment flake
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = inputs @ {
self,
nixpkgs,
flake-utils,
...