Discover gists
View muster.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Enable MySQL Query Log | |
| // To see global variable is enabled or not and location of query log | |
| SHOW VARIABLES like 'general%'; | |
| // Set query log on | |
| SET GLOBAL general_log = ON; |
View Assignment.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package database; | |
| import java.sql.*; | |
| import java.util.Scanner; | |
| import java.util.regex.Matcher; | |
| import java.util.regex.Pattern; | |
| class MyException extends Exception | |
| { | |
| @Override | |
| public String toString() |
View untrusted-lvl3-solution.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /************************ | |
| * validationEngaged.js * | |
| ************************ | |
| * | |
| * They're really on to us now! The validateLevel function | |
| * has been activated to enforce constraints on what you can | |
| * do. In this case, you're not allowed to remove any blocks. | |
| * | |
| * They're doing all they can to keep you here. But you | |
| * can still outsmart them. |
View bibletests.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Title | value to test | expected result | |
|---|---|---|---|
| The Bible should contain many different words | length of the dictionary | 9582 |
View Queue_element.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public E element() { | |
| return getFirst(); | |
| } | |
| public E getFirst() { | |
| final Node<E> f = first; | |
| if (f == null) | |
| throw new NoSuchElementException(); | |
| return f.item; | |
| } |
View DataFrameTools.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.my.package | |
| import org.apache.spark.rdd.RDD | |
| import org.apache.spark.sql.functions.col | |
| import org.apache.spark.sql.{DataFrame, Dataset, SparkSession} | |
| import scala.util.chaining.scalaUtilChainingOps | |
| object DataFrameTools { |
View 001_deploy_token.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { HardhatRuntimeEnvironment } from "hardhat/types"; | |
| import { DeployFunction } from "hardhat-deploy/types"; | |
| const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) { | |
| const { deployments, getNamedAccounts } = hre; | |
| const { deploy } = deployments; | |
| const { deployer } = await getNamedAccounts(); | |
| console.log("Deployer: ", deployer); | |
| await deploy("Vortex", { | |
| from: deployer, |
View Potential Maintainers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Maintainers: | |
| np: sqlite-replication, sqlite-replication, sqlite-replication, sqlite-replication | |
| fridh: python38Packages.traitlets, python38Packages.traitlets, python39Packages.traitlets, python38Packages.traitlets, python39Packages.traitlets, python39Packages.traitlets, python39Packages.traitlets, python38Packages.traitlets | |
| edolstra: sqlite-replication, sqlite-replication, sqlite-replication, sqlite-replication | |
| adevress: rocksdb_6_23, rocksdb_6_23, rocksdb_6_23, rocksdb_6_23 | |
| lovek323: portaudio2014, portaudio2014, portaudio2014, portaudio2014 | |
| magenbluten: rocksdb_6_23, rocksdb_6_23, rocksdb_6_23, rocksdb_6_23 |
View classCD.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class CD | |
| { | |
| private readonly string _name; | |
| private readonly string _band; | |
| public CD(string name, string band) | |
| { | |
| _name = name; | |
| _band = author; | |
| } |
View factory-example.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| interface IStaff { | |
| getSalary(): void; | |
| } | |
| class Manager implements IStaff { | |
| getSalary() { | |
| return "I am paid too much"; | |
| } | |
| } |
NewerOlder

