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
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; |
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
(async() => { | |
const response = await fetch('http://example.com/songs', { | |
credentials: 'include', | |
}); | |
const data = await response.text(); | |
console.log(data); | |
})() |
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
function printString(str) { for(let i = 0; i < str.length; i++) {console.log(str[i]);} } |
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
function printString(str) { for(let i = 0; i < str.length; i++) {console.log(str[i]);} } |
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 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", | |
}; |
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
! 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 = { |
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
/// 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; | |
}); |
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
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) { |
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
# 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> |
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
CREATE OR REPLACE FUNCTION ilikemac(macaddr, text) | |
RETURNS boolean AS | |
$$ | |
BEGIN | |
RETURN ($1::text) ilike ($2) ; | |
END; | |
$$ LANGUAGE 'plpgsql' IMMUTABLE; | |
CREATE OPERATOR ~~* ( | |
LEFTARG = macaddr, |
NewerOlder