Skip to content

Instantly share code, notes, and snippets.

🍉

mateusz apkd

  • Wroclaw, Poland
Block or report user

Report or block apkd

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View MaterialPropertiesPreserver.cs
using System.Collections.Generic;
using UnityEngine;
namespace Apkd
{
namespace Internal
{
sealed class MaterialPropertiesPreserver : MonoBehaviour
{
#if UNITY_EDITOR
View Detours.cs
using System;
using System.Collections.Generic;
using System.Reflection;
namespace CommunityCoreLibrary
{
public static class Detours
{
View urlB64ToUint8Array.js
/*
*
* 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
@apkd
apkd / download-video.ps1
Last active Oct 22, 2017
Powershell/batch script to download video using StreamLink (takes link from clipboard)
View download-video.ps1
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"
View keybase.md

Keybase proof

I hereby claim:

  • I am apkd on github.
  • I am apkd (https://keybase.io/apkd) on keybase.
  • I have a public key ASAdtybUkWrn-t0VZ9g1AsPD2MfG502vvlqUe2NmE8_WtAo

To claim this, I am signing this object:

View vscode-typescript-bugs.ts
// invalid syntax highlighting
// caused by "styles" keyword
const x = { styles: {} };
@apkd
apkd / vscode-style.css
Created Oct 3, 2017
vscode stylesheet customization
View vscode-style.css
.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;
View QuaternionExtensions.cs
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>
View KvpDictionary.ts
import { Enumerable } from "powerseq/enumerable";
class KeyValuePair<T> {
key: string;
value: T;
}
class KvpDictionary<T> {
mapping: { [key: string]: T } = {}
public get keys(): Enumerable<string> {
You can’t perform that action at this time.