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> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>RimWorld modlist</title> | |
<link rel="stylesheet" href="https://cdn.rawgit.com/markdowncss/modest/master/css/modest.css"> | |
</head> | |
<body><h1>RimWorld modlist</h1> | |
<p>Author: <strong>apk</strong><br /> |
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
using System; | |
using Serilog; | |
using Narochno.Serilog.Slack; | |
namespace SlackSinkWithDiscordExample | |
{ | |
class Program | |
{ | |
const string discord_webhook = | |
"https://discordapp.com/api/webhooks/{REDACTED}"; |
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
#if UNITY_EDITOR | |
using UnityEditor; | |
using UnityEditor.Callbacks; | |
#endif | |
using System; | |
using System.Linq; | |
using UnityEngine; | |
using S = UnityEngine.SerializeField; | |
/// <summary> |
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
void OnValidate() | |
{ | |
// remove non-unique and non-prefabs | |
ReplicablePrefabs = | |
ReplicablePrefabs | |
.Where(x => !x || x.IsPrefab()) | |
.AppendItem(null as Replicable) | |
.Distinct() | |
.ToList(); |
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
WheelRight::^#Right | |
WheelLeft::^#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
import { Enumerable } from "powerseq/enumerable"; | |
class KeyValuePair<T> { | |
key: string; | |
value: T; | |
} | |
class KvpDictionary<T> { | |
mapping: { [key: string]: T } = {} | |
public get keys(): Enumerable<string> { |
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
using UnityEngine; | |
public static partial class QuaternionExtensions | |
{ | |
/// <summary> | |
/// Gradually changes a quaternion towards a desired goal over time. | |
/// The quaternion is smoothed by some spring-damper like function, which will never overshoot. | |
/// </summary> | |
/// <param name="current">Current rotation to interpolate from.</param> | |
/// <param name="target">Target rotation to interpolate to.</param> |
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
.mtk4 { | |
font-family: 'Operator Mono Light'; | |
font-style: italic; | |
font-size: 1.21em; | |
} | |
.monaco-workbench .panel.integrated-terminal .xterm .xterm-rows { | |
color: #fffeca; | |
font-family: "Monoid" !important; | |
font-size: 9px !important; |
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
add-type -as System.Windows.Forms; | |
$url = [windows.forms.clipboard]::GetText() | |
$arr = $url.split("/") | |
$arr = $arr[$arr.length - 1].split("=") | |
$filename = $arr[$arr.length - 1] | |
echo $filename | |
&"streamlink" $url "best" "--out" "$($filename).mp4" |
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
/* | |
* | |
* Push Notifications codelab | |
* Copyright 2015 Google Inc. All rights reserved. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* https://www.apache.org/licenses/LICENSE-2.0 |
OlderNewer