What do you want to save?
Add Code snippet
New code examples
-
Other 2022-03-18 05:05:02
nebular switcher-background-percentage
$nb-enabled-themes: (default); $nb-themes: nb-register-theme(( calendar-active-item-bg: #FFDB06, calendar-selected-item-bg: #FFDB06, checkbox-checked-border-color: #FFDB06, color-fg-highlight: #FFDB06, color-primary: #FFDB06, context-menu-act... Add solution -
C++ 2022-03-17 23:50:10
std::bad_array_new_length
std::bad_array_new_length is the type of the object thrown as exceptions by the new-expressions to report invalid array lengths if 1) array length is negative 2) total size of the new array would exceed implementation-defined maximum value 3) the number ... Add solution -
Javascript 2022-03-17 16:55:10
polkadot UnhandledPromiseRejectionWarning: Error: Api needs to be initialized before using, listen on 'ready'
import { ApiRx } from '@polkadot/api'; // initialise via static create const api = await ApiRx.create().toPromise(); // make a call to retrieve the current network head api.rpc.chain.subscribeNewHeads().subscribe((header) => { console.log(`Chain is... Add solution -
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 -
SQL 2022-03-16 12:00:06
oracle alter sequence max value
SELECT LAST_NUMBER FROM ALL_SEQUENCES WHERE SEQUENCE_NAME = 'seq_name'; ALTER SEQUENCE seq_name INCREMENT BY 100; -- Value to reach desired value - 1 SELECT seq_name.nextval FROM dual; -- Reinitialize value to desired ALTER SEQUENCE seq_name INCREMENT ... Add solution -
Shell/Bash 2022-03-16 08:35:03
add a file to git
/* go to the folder, open the terminal and type this commands */ git init git add . /* . => it is to add all the files */ git commit -m "first_commit" git remote add origin https://github.com/yourusername/your-repo-name.git... Add solution -
C++ 2022-03-15 06:55:06
segment tree complexity
// C++ program to show segment tree operations like construction, query // and update #include <bits/stdc++.h> using namespace std; // A utility function to get the middle index from corner indexes. int getMid(int s, int e) { return s + (e -s)... Add solution -
Ruby 2022-03-15 05:00:27
how to delete database in rails
rake db:create # Create the database from DATABASE_URL or config/database.yml for the current Rails.env (use db:create:all to create all dbs in the config) rake db:drop # Drops the database using DATABASE_URL or the current Rails.env (... Add solution