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
FROM surrealdb/surrealdb:latest | |
EXPOSE 8080 | |
CMD ["start", "--bind", "0.0.0.0:8080", "file://data/srdb.db", "--user", "root", "--pass", "root"] |
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
<input type="range" min="0" max="100" step="1" value="20"> | |
<input type="range" min="0" max="100" step="1" style="--c: lightblue;--l: 6px;--g:12px;"> | |
<input type="range" min="0" max="100" step="1" value="70" style="--c: red;--l: 4px;"> | |
<style> | |
input { | |
--c: orange; /* active color */ | |
--g: 8px; /* the gap */ |
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 os, json | |
backlog = dict( | |
chem=dict(goc=30, nomenclature=8, periodic=12, kinetics=18, etc=3, ionicEq = 12), # etc = redox | chemEq | surface | |
phys=dict(shm=10, ktg=10, wave=10, fluids=6), | |
math=dict(hyperbola=11, sets=4, funcs=12, trigno=15), | |
) | |
hours = sum(sum(lecs.values()) for sub, lecs in backlog.items()) |
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
/* <div class="loader" /> */ | |
@keyframes spin { | |
0% { | |
transform: rotate(0deg); | |
} | |
100% { | |
transform: rotate(360deg); | |
} | |
} |
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
def f(n): return n*f(n-1) if n >1 else 1 | |
nCr = lambda n,r: f(n)/(f(n)*f(n-r)) | |
nPr = lambda n,r: f(n)/f(n-r) |
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
<meta charset="utf-8"/> | |
<meta http-equiv="x-ua-compatible" content="ie=edge"/> | |
<meta | |
name="viewport" | |
content="width=device-width, height=device-height, viewport-fit=cover, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no" | |
/> | |
<meta name="mobile-web-app-capable" content="yes"/> | |
<meta name="apple-mobile-web-app-capable" content="yes"/> |
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/env python | |
# coding: utf-8 | |
from PyQt4.QtCore import * | |
from PyQt4.QtGui import * | |
import sys | |
class MainWindow(QMainWindow): | |
def __init__(self, parent=None): | |
super(MainWindow, self).__init__(parent) |
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> | |
<title> CodeCube Suite </title> | |
<meta name="description" content="A project management suite for codecube" /> | |
<script> | |
location.href='http://crm.mycsnl.com/'; | |
</script> | |
</head> |
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
TuneGenerator(); | |
function TuneGenerator() { | |
const notesGenerator = new NotesGenerator(); | |
setInterval(function () { | |
notesGenerator.playNote(3); | |
}, 800); | |
setInterval(function () { |