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
#!/bin/bash | |
if [[ $1 == "" ]]; then | |
QUERY="neon" | |
else | |
QUERY=$1 | |
fi | |
echo "► searching for $QUERY" |
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
<html> | |
<head> | |
<style> | |
body { | |
margin: 0px; | |
padding: 0px; | |
} | |
.bg { |
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 play.api.libs.json._ | |
import scala.collection.mutable.ArrayBuffer | |
import scala.concurrent.Future | |
import scala.util.Success | |
import scala.util.Failure | |
import java.io.BufferedWriter | |
import java.io.FileWriter | |
import requests.auth | |
import com.redis._ |
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 java.time.Instant | |
import java.time.Duration | |
import scala.util.Random | |
import scala.math.abs | |
import scala.math.pow | |
object Main extends App { | |
val LEN = 10_000 | |
val r = new Random() | |
val l = List.tabulate(LEN)(el => r.between(-5000, 5000)).sorted |
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
let rec read_lines () = | |
try let line = read_int () in | |
line :: read_lines () | |
with | |
_ -> [] | |
;; | |
let f ls = | |
(* write your code here *) | |
;; |
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 Control; | |
import java.util.Properties; | |
import javax.mail.Session; | |
import javax.mail.Message; | |
import javax.mail.Transport; | |
import javax.mail.Authenticator; | |
import javax.mail.MessagingException; | |
import javax.mail.internet.InternetAddress; | |
import javax.mail.PasswordAuthentication; |
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 tkinter, os | |
window = tkinter.Tk() | |
def callbk(): | |
_res = os.system('ping -c 1 ' + ent.get()) | |
res.configure(text='success' if _res == 0 else 'fail') | |
lbl = tkinter.Label(window, text='IP: ') | |
ent = tkinter.Entry(window) | |
btn = tkinter.Button(window, text='ping', command=callbk) | |
res = tkinter.Label(window, text='...') | |
lbl.pack() |