Skip to content

Instantly share code, notes, and snippets.

@zeljic
zeljic / build_sqlite3_lib.md
Last active January 16, 2026 19:25
Build SQLite3 .lib file on windows

How to build SQLite3 .lib file on Windows 10

  1. Download source from source

    For example: source https://www.sqlite.org/2023/sqlite-amalgamation-3430100.zip

  2. Download binary from binary

    For example: binary https://www.sqlite.org/2023/sqlite-dll-win64-x64-3430100.zip

  3. Extract both archives to the same directory

@willnode
willnode / ffmpeg-compress-mp4.bat
Last active March 10, 2022 22:45 — forked from lukehedger/ffmpeg-compress-mp4
Compress mp4 using FFMPEG (batch script for whole .mp4 in folder)
for %%v in (*.mp4) do ffmpeg -i "%%v" -vcodec h264 -b:v 800k -acodec mp3 "compress/%%v"
@LotteMakesStuff
LotteMakesStuff / 1.md
Last active June 30, 2025 09:30
UPM: How to make a custom package

UPM: How to make a custom package So, Unity has this shiny new package manager, and you have code you want to share between projects - wouldn't it be great if we could bundle up our shared code and plug it into all the projects that need it? Let's figure out how to make our own Package!


Todo

  • Modify the project manifest
  • Make a package manifest
  • Package the manifest up with some test code
  • Try it out in Unity!

@erikstorm
erikstorm / ffmpeg-compress-mp4
Last active March 9, 2018 06:07 — forked from lukehedger/ffmpeg-compress-mp4
Compress mp4 using FFMPEG
$ ffmpeg -i input.mp4 -vcodec h264 -b:v 800k -acodec mp3 output.mp4
@lanedraex
lanedraex / listener.rs
Created November 5, 2017 09:12
Rust UDP socket: send and receive
use std::net;
use std::env;
fn listen(socket: &net::UdpSocket, mut buffer: &mut [u8]) -> usize {
let (number_of_bytes, src_addr) = socket.recv_from(&mut buffer).expect("no data received");
println!("{:?}", number_of_bytes);
println!("{:?}", src_addr);
@eddyLazar
eddyLazar / ReactBootstrapTable.jsx
Last active March 1, 2020 04:20
example of implementing wenzhixin bootstrap-table with react
import React from 'react'
import ReactDOM from 'react-dom'
const BootstrapTable = React.createClass({
componentDidMount() {
$(ReactDOM.findDOMNode(this)).bootstrapTable(this.props)
},
componentWillReceiveProps(nextProps) {
$(ReactDOM.findDOMNode(this)).bootstrapTable('refreshOptions', nextProps)
},
@sindresorhus
sindresorhus / x.js
Created May 6, 2017 19:07
Copy + paste + devtools
[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]][([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]](([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+
@AlexWebLab
AlexWebLab / style.css
Last active September 12, 2023 17:05
Retina displays CSS background image
.logo_background {
background-image: url('../img/logo@1x.png');
background-position: center center;
background-repeat: no-repeat;
background-size: 80px 40px; /* size of the logo image @ 1x */
}
@media /* only for retina displays */
only screen and (-webkit-min-device-pixel-ratio: 2),
only screen and (min--moz-device-pixel-ratio: 2),
only screen and (min-device-pixel-ratio: 2),
@Nikasa1889
Nikasa1889 / execBashDocker.sh
Created March 6, 2017 15:14
Bash script to open bash shell on a running docker
#!/bin/bash
#List current running docker images
echo "Select one of the following running images:"
echo -e "Number \t Name"
echo $(docker ps | tail -n +2| awk -F ' ' '{printf("%7d %s\n", NR, $2)}')
read -p "Enter the process number:" selectedID
selectedID=$(($selectedID + 1))
#Get Docker process ID of the specified docker image name
DOCKER_ID=$(docker ps | tail -n +$selectedID | head -1 | awk '{print $1}')
docker exec -it $DOCKER_ID /bin/bash
@hydrix9
hydrix9 / Server.cs
Created January 19, 2017 23:46
c# websocket server for unity3d game test
#if (!UNITY_WEBGL || DEBUG) //run from compiler and unity_editor but not webgl release
using System;
using WebSocketSharp;
using WebSocketSharp.Server;
using System.Collections.Generic; //lists
using System.Linq; //dictionary keys toarray
using System.Collections; //enumerator