Skip to content

Instantly share code, notes, and snippets.

#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 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
<!doctype html>
<head>
<script>
class foo extends HTMLInputElement
{
constructor() {
alert("constructed");
super();
}
connectedCallback(){
// class1.phq
@private string x;
@public __construct()
{
x = "bin";
}
@public int foo()
{
int foo = 4;
int bar = 5;
// class1.phq
@private x:string;
@public __construct()
{
x = "bin";
}
@public foo():int
{
foo:int = 4;
bar:int = 5;
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,
<?php
$TableColumnNames = array(
array(
"TableName" => "TableColumnNames",
"ColumnName" => "TableName",
"DisplayName" => "Table Name",
"ColumnOrder" => 0,
"IsActive" => 1,
),
array(
<?php
$Role = array(
array(
"RoleName" => "Advisor",
"Description" => "Advisor",
"IsActive" => 1,
),
array(
"RoleName" => "Check-in",
"Description" => "Only check-in functions",
<?php
$Permission = array(
array(
"Role" => "SysAdmin",
"Module" => "Root",
"ReadAccess" => 1,
"WriteAccess" => 1,
"IsActive" => 1,
),
array(
<?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);
}