Skip to content

Instantly share code, notes, and snippets.

@onatcipli
onatcipli / go_router_example.dart
Last active May 6, 2024 12:29
go_router_example.dart
import 'package:flutter/material.dart';
import 'package:go_router/go_router.dart';
main() {
CustomNavigationHelper.instance;
runApp(const App());
}
class App extends StatelessWidget {
const App({Key? key}) : super(key: key);
@danrovito
danrovito / countrydropdown.html
Last active May 6, 2024 12:29
HTML Country Select Dropdown List
<label for="country">Country</label><span style="color: red !important; display: inline; float: none;">*</span>
<select id="country" name="country" class="form-control">
<option value="Afghanistan">Afghanistan</option>
<option value="Åland Islands">Åland Islands</option>
<option value="Albania">Albania</option>
<option value="Algeria">Algeria</option>
<option value="American Samoa">American Samoa</option>
<option value="Andorra">Andorra</option>
<option value="Angola">Angola</option>
@yoavniran
yoavniran / ultimate-ut-cheat-sheet.md
Last active May 6, 2024 12:29
The Ultimate Unit Testing Cheat-sheet For Mocha, Chai, Sinon, and Jest
@cowboy
cowboy / 1-file.txt
Last active May 6, 2024 12:29
Iterate over all lines in a file, handing extra trailing newlines
foo bar
baz
qux
last line (there may or may not be a trailing newline after this line)
@nikcub
nikcub / chrome.refresh.sh
Created October 31, 2011 03:05
Chrome Refresh
#!/bin/bash
# Chrome Refresh
#
# nik cubrilovic - nikcub.appspot.com
#
# Simple applescript browser reloader for Google Chrome. It will either open a
# new tab with the url passed in as an argument or refresh an existing tab.
#
# Link this up with watchr to auto-refresh browser windows when you save files
@Pulimet
Pulimet / AdbCommands
Last active May 6, 2024 12:28
Adb useful commands list
adb help // List all comands
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
@omerkaya1
omerkaya1 / pgx.go
Last active May 6, 2024 12:25
Golang PostgreSQL connection pool example Go ^1.18
package db
import (
"context"
"database/sql"
"net"
"net/url"
"strconv"
"time"
@-moz-document domain("amazon.co.uk"), domain("amazon.com"), domain("amazon.ca"), domain("amazon.de"), domain("amazon.it"), domain("amazon.es"), domain("amazon.fr"), domain("amazon.com.mx"), domain("amazon.co.jp"), domain("amazon.com.au"), domain("amazon.in")
{
body
{
font-size: 13px;
line-height: 19px;
color: #aaa !important;
font-family: 'Open Sans', Arial, sans-serif;
background-color: #1c1f26 !important;
}
@velut
velut / guida_tilde_backtick_windows10.md
Last active May 6, 2024 12:25
Guida per digitare i caratteri tilde (~) e backtick (`) su una tastiera italiana con Windows 10

Come digitare i caratteri tilde (~) e backtick (`) su una tastiera italiana con Windows 10

Inserire o scrivere caratteri come tilde (~) e backtick (`) con Windows non è immediato data la loro assenza nel layout della tastiera italiana.

È comunque possibile utilizzare questi caratteri sia sfruttando una combinazione di tasti fornita da Windows (vedi Soluzione Windows) sia creando una combinazione di tasti personalizzata (vedi Soluzione Personalizzata).
Entrambe le soluzioni non richiedono di cambiare il layout predefinito della tastiera o le impostazioni di input di Windows 10.

Soluzione Windows

Questa soluzione consiste nel digitare un codice sul tastierino numerico mentre viene tenuto premuto il tasto Alt.