Skip to content

Instantly share code, notes, and snippets.

@DanielUPedersen1
DanielUPedersen1 / example.srt
Created May 25, 2025 16:17 — forked from matibzurovski/example.srt
Example srt file
1
00:00:00,000 --> 00:00:02,500
Welcome to the Example Subtitle File!
2
00:00:03,000 --> 00:00:06,000
This is a demonstration of SRT subtitles.
3
00:00:07,000 --> 00:00:10,500
@DanielUPedersen1
DanielUPedersen1 / spi_recorder.ino
Created May 8, 2025 07:55 — forked from wareya/spi_recorder.ino
long SPI message recorder - rasberry pi pico (rp2040), arduino IDE .ino file (C++)
// wiring example for ripping a PMW3360 SROM: https://i.imgur.com/EspAlvz.jpeg
// set the board to 240mhz or higher for best results (WARNING: higher than 240mhz only works with USB if you overvolt the MCU)
// this implements reading SPI mode 3. if you want a different mode, you need to edit these two lines:
// uint32_t clockval = (1 << pin_clock);
// if (newclock && !clockval && buff_i < buffsize)
#include <pico/stdlib.h>
#define buffsize 50000
@DanielUPedersen1
DanielUPedersen1 / index.html
Created May 2, 2025 12:22 — forked from tristen/index.html
Full height sidebar with scrollable content
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<title></title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<link href='https://www.mapbox.com/base/latest/base.css' rel='stylesheet' />
<link href='site.css' rel='stylesheet' />
</head>
<body>

MySQL Cheat Sheet

Help with SQL commands to interact with a MySQL database

MySQL Locations

  • Mac /usr/local/mysql/bin
  • Windows /Program Files/MySQL/MySQL version/bin
  • Xampp /xampp/mysql/bin

Add mysql to your PATH

@DanielUPedersen1
DanielUPedersen1 / media-query-template.css
Created July 28, 2024 06:55 — forked from mavieth/media-query-template.css
Media Query Template for Basic CSS
/**
* Basic CSS Media Query Template
* TODO: I should probably use Sass...
* Author: Michael Vieth
* ------------------------------------------
* Responsive Grid Media Queries - 1280, 1024, 768, 480
* 1280-1024 - desktop (default grid)
* 1024-768 - tablet landscape
* 768-480 - tablet
* 480-less - phone landscape & smaller
/* Smartphones (portrait and landscape) ----------- */
@media only screen
and (min-width : 320px)
and (max-width : 480px) {
/* Styles */
}
/* Smartphones (landscape) ----------- */
@media only screen
and (min-width : 321px) {
@DanielUPedersen1
DanielUPedersen1 / mq-boilerplate.css
Created March 1, 2023 20:31 — forked from duffycheng/mq-boilerplate.css
Media Query Boilerplate
/**
* Target styles based on screen color support
*/
/* Screen is in monochrome */
@media (monochrome) {
}
/* Screen is in color */
@media (color) {
@DanielUPedersen1
DanielUPedersen1 / MobileFirstMethod.css
Created February 21, 2023 21:47 — forked from fahimxyz/MobileFirstMethod.css
Responsive Breakpoint ( CSS Media Queries for Desktop, Tablet, Mobile )
## Mobile First Method
/* Custom, iPhone Retina */
@media only screen and (min-width : 320px) {
}
/* Extra Small Devices, Phones */
@media only screen and (min-width : 480px) {
@DanielUPedersen1
DanielUPedersen1 / gist:1e58125ad5d806ffd6ab36e9064941c4
Created February 21, 2023 21:45 — forked from geoom/gist:5849204
CSS Media Queries for All Devices
/* Smartphones (portrait and landscape) ----------- */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
/* STYLES GO HERE */
}
/* Smartphones (landscape) ----------- */
@media only screen
and (min-width : 321px) {
@DanielUPedersen1
DanielUPedersen1 / CSS3 media queries
Created February 21, 2023 21:43 — forked from adrianherritt/CSS3 media queries
Boilerplate CSS Media Queries
/* Credit to Paulund http://www.paulund.co.uk/boilerplate-css-media-queries */
/* Smartphones (portrait and landscape) ----------- */
@media only screen
and (min-width : 320px)
and (max-width : 480px) {
/* Styles */
}
/* Smartphones (landscape) ----------- */