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
#define _XOPEN_SOURCE 700 | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <ftw.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <sys/sysmacros.h> | |
char typechar(int typeflag) | |
{ |
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
; This file is a list of messages that are randomly selected, comments can be made by beginning with a semicolon | |
; Empty lines are ignored | |
; | |
; To get a list of videos - go to a YouTube playlist (https://www.youtube.com/playlist?list=xxxxx), scroll all the way down | |
; Then press F12 and in the console run: | |
; console.log($x("//ytd-playlist-video-renderer").map(x => x.getElementsByTagName("a")[0].href.split("&")[0]).join("\n")) | |
; This will definitely break at some point but it works for now | |
; Note that this only selects videos that are on the page - if you haven't scrolled all the way down you will miss some! | |
; | |
; The Best VGM List ! Part 1 |
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
<!doctype html> | |
<head> | |
<script> | |
class foo extends HTMLInputElement | |
{ | |
constructor() { | |
alert("constructed"); | |
super(); | |
} | |
connectedCallback(){ |
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
// class1.phq | |
@private string x; | |
@public __construct() | |
{ | |
x = "bin"; | |
} | |
@public int foo() | |
{ | |
int foo = 4; | |
int bar = 5; |
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
// class1.phq | |
@private x:string; | |
@public __construct() | |
{ | |
x = "bin"; | |
} | |
@public foo():int | |
{ | |
foo:int = 4; | |
bar:int = 5; |
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
INSERT INTO Shift VALUES(NULL, 'zbw5667', 1585335600, 1585353600, 'Tutor', 'GOL-9999', 0, NULL, NULL, 0, 2195, 1); | |
INSERT INTO Shift VALUES(NULL, 'zbw5667', 1585940400, 1585958400, 'Tutor', 'GOL-9999', 0, NULL, NULL, 0, 2195, 1); | |
INSERT INTO Shift VALUES(NULL, 'zbw5667', 1586545200, 1586563200, 'Tutor', 'GOL-9999', 0, NULL, NULL, 0, 2195, 1); | |
INSERT INTO Shift VALUES(NULL, 'zbw5667', 1587150000, 1587168000, 'Tutor', 'GOL-9999', 0, NULL, NULL, 0, 2195, 1); | |
INSERT INTO Shift VALUES(NULL, 'zbw5667', 1587754800, 1587772800, 'Tutor', 'GOL-9999', 0, NULL, NULL, 0, 2195, 1); | |
INSERT INTO Shift VALUES(NULL, 'zbw5667', 1588359600, 1588377600, 'Tutor', 'GOL-9999', 0, NULL, NULL, 0, 2195, 1); | |
INSERT INTO Shift VALUES(NULL, 'wjk4218', 1585425600, 1585440000, 'Tutor', 'GOL-9999', 0, NULL, NULL, 0, 2195, 1); | |
INSERT INTO Shift VALUES(NULL, 'wjk4218', 1586030400, 1586044800, 'Tutor', 'GOL-9999', 0, NULL, NULL, 0, 2195, 1); | |
INSERT INTO Shift VALUES(NULL, 'wjk4218', 1586635200, 1586649600, 'Tutor', 'GOL-9999', 0, NULL, NULL, 0, |
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
<?php | |
$TableColumnNames = array( | |
array( | |
"TableName" => "TableColumnNames", | |
"ColumnName" => "TableName", | |
"DisplayName" => "Table Name", | |
"ColumnOrder" => 0, | |
"IsActive" => 1, | |
), | |
array( |
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
<?php | |
$Role = array( | |
array( | |
"RoleName" => "Advisor", | |
"Description" => "Advisor", | |
"IsActive" => 1, | |
), | |
array( | |
"RoleName" => "Check-in", | |
"Description" => "Only check-in functions", |
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
<?php | |
$Permission = array( | |
array( | |
"Role" => "SysAdmin", | |
"Module" => "Root", | |
"ReadAccess" => 1, | |
"WriteAccess" => 1, | |
"IsActive" => 1, | |
), | |
array( |
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
<?php | |
$conts = file_get_contents("https://projects.fivethirtyeight.com/2020-primary-forecast/"); | |
$obj = []; | |
foreach(explode("\n", $conts) as $line) { | |
$line = trim($line); | |
if(preg_match("/^interactivePage\\.([a-z]+) = (.+);$/", $line, $matches)) { | |
[$_, $key, $value] = $matches; | |
if($value[0] === "'") $value = str_replace("'", '"', $value); | |
$obj[$key] = json_decode($value, true); | |
} |