Thanks to visit codestin.com
Credit goes to gist.github.com

Skip to content

Instantly share code, notes, and snippets.

import Cocoa
import SwiftUI
class WindowConfig {
static let width: CGFloat = 659
static let height: CGFloat = 400
static let sidebarFixedWidth: CGFloat = 215
static let sideBarTopPadding: CGFloat = 43
}
@kassane
kassane / std_log.md
Last active May 7, 2025 04:29 — forked from leecannon/std_log.md
Quick overview of Zig's `std.log`

A simple overview of Zig's std.log for Zig v0.12.0 or higher

Logging functionality that supports:

  • If a log message should be printed is determined at comptime, meaning zero overhead for unprinted messages (so just leave the code peppered with debug logs, but when it makes sense scope them; so downstream users can filter them out)
  • Scoped log messages
  • Different log levels per scope
  • Overrideable log output (write to file, database, etc.)
  • All the standard std.fmt formatting magic

Basic Usage:

@MxAR
MxAR / simd_memset.hpp
Created July 28, 2019 08:21
simd memset (avx and sse2 support)
#ifndef __SIMD_MEMSET_H__
#define __SIMD_MEMSET_H__
int __memset(unsigned char *ptr, unsigned char v, std::size_t len) {
for (std::size_t i = 0; i < len; ++i) {
ptr[i] = v;
}
return 0;
}
@vkuchinov
vkuchinov / README.md
Last active May 7, 2025 04:25
THREE.JS | Delaunator.JS Pseudo Quadree Coherent Terrain

A seamless terrain based on pseudo quadtree algorithm and DelaunatorJS (https://github.com/mapbox/delaunator) by Mapbox team. The simplex noise library by Jonas Wagner is just for demonstration purpose.

@darcyparker
darcyparker / vimModeStateDiagram.svg
Last active May 7, 2025 04:25
Vim Modes Transition Diagram in SVG https://rawgithub.com/darcyparker/1886716/raw/eab57dfe784f016085251771d65a75a471ca22d4/vimModeStateDiagram.svg Note, most of the nodes in this graph have clickable hyperlinks to documentation.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@coconut49
coconut49 / main.go
Created August 21, 2019 03:23
Golang SSL Pinning
package main
import (
"context"
"crypto/sha256"
"crypto/tls"
"crypto/x509"
"encoding/pem"
"errors"
"fmt"
@maxgfr
maxgfr / calendar.tsx
Last active May 7, 2025 04:24
Shadcn Calendar UI Picker with months selections
"use client";
import * as React from "react";
import { ChevronLeft, ChevronRight } from "lucide-react";
import { DayPicker } from "react-day-picker";
import { format } from "date-fns";
import { cn } from "~/lib/utils";
import { buttonVariants } from "~/components/ui/button";
import { fr } from "date-fns/locale";
@gsampallo
gsampallo / enviar_mensaje.ino
Last active May 7, 2025 04:19
Simple ejemplo para enviar una notificación push a un telefono por medio de Pushbullet desde NodeMCU.
/*
* Send Push notification from NodeMCU with Pushbullet API
* https://www.gsampallo.com/2020/07/09/envio-de-notificaciones-desde-nodemcu-con-pushbullet/
* Guillermo Sampallo 2020
*/
#include <ESP8266WiFi.h>
const char* ssid = "SSD_NETWORK";
const char* password = "PASSWORD_NETWORK";
@wavezhang
wavezhang / java_download.sh
Last active May 7, 2025 04:17
download java from oracle without login
wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/12.0.2+10/e482c34c86bd4bf8b56c0b35558996b9/jdk-12.0.2_linux-x64_bin.tar.gz