What do you want to save?
Add Code snippet
New code examples
-
SQL 2021-10-24 18:44:12
comparison operators sql
(Between) operator same as ">= <=" For example: Select * From Employees Where salary Between 4000 AND 6000; (NOT) operator excluding given For example: Select last_name, job_id From Employees Where "Not" job_id = 'ABC'; (IN)... Add solution -
Javascript 2021-10-21 08:30:19
connecting , creating ,reading from mongo
const MongoClient = require('mongodb').MongoClient; // Connection URL const url = 'mongodb://localhost:27017'; // Database Name const dbName = 'mytestingdb'; const retrieveCustomers = (db, callback)=>{ // Get the customers collection const col... Add solution -
PHP 2021-10-18 18:29:07
Looping Through Select Option Dropdown with Laravel Collective
//Controller public function create() { $departments = Departments::all(); $select = []; foreach($departments as $department){ $select[$department->id] = $department->title; } return view('emplo... Add solution -
Other 2021-10-18 07:21:14
csgo smoke practice commands
// Config for server sv_cheats 1 sv_infinite_ammo 1 ammo_grenade_limit_total 5 mp_warmup_end mp_freezetime 0 mp_roundtime 60 mp_roundtime_defuse 60 sv_grenade_trajectory 1 sv_grenade_trajectory_time 10 sv_showimpacts 1 mp_limitteams 0 mp_autoteambala... Add solution -
TypeScript 2021-10-16 09:54:07
js get quater hours in time range
// Start and End is the UTC-Timestamp function getQuaterHours(start: number, end: number): Date[] { const difference = end - start; // Return if Difference between start and end is 0 if (difference <= 0) { // You can return a default r... Add solution -
Javascript 2021-10-15 08:11:05
You will need to rewrite or cast the expression.
PreparedStatement stmt = conn.prepareStatement( "INSERT INTO Event (EventNum, EventName, startHour, endHour, startMin, endMin, startDate, endDate, State, depName) VALUES (?, ?, ?, ?, ?, ?, ?::date, ?::date, ?::status, ?)"); Add solution -
Shell/Bash 2021-10-14 21:54:04
helm 3 prometheus operator
cat <<EOF > custom-values.yaml global: imagePullSecrets: - name: regcred prometheusOperator: image: repository: your-registry.com/monitoring/prometheus-operator tag: v0.38.1 tlsProxy: image: repository: your-registry.co... Add solution