What do you want to save?
Add Code snippet
New code examples
-
Other 2022-03-16 19:55:36
raspberry pi configuration.nix
{ config, pkgs, lib, ... }: { # This configuration worked on 09-03-2021 nixos-unstable @ commit 102eb68ceec # The image used https://hydra.nixos.org/build/134720986 boot = { kernelPackages = pkgs.linuxPackages_rpi4; tmpOnTmpfs = true; in... Add solution -
Other 2022-03-16 19:20:03
how to make an opencomputers os
_G _VERSION assert error getmetatable ipairs load next pairs pcall rawequal rawget rawlen rawset select setmetatable tonumber tostring type xpcall bit32.arshift bit32.band bit32.bnot bit32.bor bit32.btest bit32.bxor bit32.extract bit32.lrota... Add solution -
Other 2022-03-16 16:10:45
bootstrap container
// Extra small devices (portrait phones, less than 576px) // No media query for `xs` since this is the default in Bootstrap // Small devices (landscape phones, 576px and up) @media (min-width: 576px) { ... } // Medium devices (tablets, 768px and up) @me... Add solution -
Other 2022-03-16 12:00:07
javascript arrays
//Creating a list var fruits = ["Apple", "Banana", "Cherry"]; //Creating an empty list var books = []; //Getting element of list //Lists are ordered using indexes //The first element in an list has an index of 0, //the sec... Add solution -
Other 2022-03-16 09:30:04
bootstrap hide navbar
const navLinks = document.querySelectorAll('.nav-item') const menuToggle = document.getElementById('navbarSupportedContent') const bsCollapse = new bootstrap.Collapse(menuToggle) navLinks.forEach((l) => { l.addEventListener('click', () => { bsCo... Add solution -
Html 2022-03-15 03:10:02
bootstrap spinner
<!-- Bootstrap 5 Spinners --> <div class="spinner-border text-primary" role="status"> <span class="visually-hidden">Loading...</span> </div> <div class="spinner-border text-secondary&q... Add solution -
C# 2022-03-14 13:55:02
child component interact with parent component blazor
// 2 methods shown here [Parent.razor] @page "/ParentComponent" <h1>Parent Component</h1> <ChildComponent @bind-Password="_password" /> @code { private string _password; } [ChildComponent.razor] <h1>Chi... Add solution -
Java 2022-03-13 05:10:26
how to use scanners in java
import java.util.Scanner; // import scanner Scanner myScanner = new Scanner(System.in); // Make scanner obj String inputString = myScanner.nextLine(); // Take whole line boolean inputBoolean = myScanner.nextBoolean(); //Boolean input long inputLong ... Add solution -
Other 2022-03-13 04:40:11
shutdown system after 1 hour
1) Open the Run window (Windows Key+R) or (Start / All Programs / Accessories / Run). 2) type shutdown -s -t 1800 [1800(can be changed) is the number of seconds after which the computer will turn off.] Click on OK and your computer will turn off after ... Add solution