Skip to content

Instantly share code, notes, and snippets.

View Azerothian's full-sized avatar
♾️
Over thinking, over analyzing separates the body from the mind

Matthew Mckenzie Azerothian

♾️
Over thinking, over analyzing separates the body from the mind
View GitHub Profile
namespace Steamworks
{
// Token: 0x020001A6 RID: 422
[Serializable]
public struct AppId_t : IEquatable<AppId_t>, IComparable<AppId_t>
{
// Token: 0x06000A57 RID: 2647 RVA: 0x0000DCD0 File Offset: 0x0000BED0
public AppId_t(uint value)
{
this.m_AppId = value;
(async() => {
const response = await fetch('http://example.com/songs', {
credentials: 'include',
});
const data = await response.text();
console.log(data);
})()
function printString(str) { for(let i = 0; i < str.length; i++) {console.log(str[i]);} }
function printString(str) { for(let i = 0; i < str.length; i++) {console.log(str[i]);} }
import React from "react";
// import { Control } from "mapbox-gl";
import { MapContext } from "react-mapbox-gl";
import MapboxDraw from "@mapbox/mapbox-gl-draw";
export default class DrawControl extends React.Component {
static contextType = MapContext;
static defaultProps = {
position: "top-left",
};
! function () {
var require = function (file, cwd) {
var resolved = require.resolve(file, cwd || "/"),
mod = require.modules[resolved];
if (!mod) throw new Error("Failed to resolve module " + file + ", tried " + resolved);
var cached = require.cache[resolved],
res = cached ? cached.exports : mod();
return res
};
require.paths = [], require.modules = {}, require.cache = {}, require.extensions = [".js", ".coffee", ".json"], require._core = {
/// synchronous processing of array data using promises
function waterfall(arr, func, initVar) {
return arr.reduce((promise, va) => {
return promise.then((prevVar) => {
const result = func(va);
if (isFunction(result)) {
return result(prevVar);
}
return result;
});
function waterfall(arr) {
return arr.reduce((promise, func) => {
return promise.then(func);
}, Promise.resolve());
}
//
// function waterfall(arr) {
// log.info("have we hit yet");
// if (arr.length === 0) {
# docker fix for
#Error response from daemon: rpc error: code = 6 desc = "mkdir /run/containerd/<id>: file exists"
#Error: failed to start containers: <name>
sudo rm -Rf /run/containerd/<id>
sudo rm -Rf /run/runc/<id>
@Azerothian
Azerothian / ilike-oper.sql
Created May 31, 2016 01:04
macaddr, inet ilike operators for postgresql
CREATE OR REPLACE FUNCTION ilikemac(macaddr, text)
RETURNS boolean AS
$$
BEGIN
RETURN ($1::text) ilike ($2) ;
END;
$$ LANGUAGE 'plpgsql' IMMUTABLE;
CREATE OPERATOR ~~* (
LEFTARG = macaddr,