This file contains hidden or 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 System.Runtime.InteropServices; | |
// ReSharper disable SuspiciousTypeConversion.Global | |
// ReSharper disable InconsistentNaming | |
namespace VideoPlayerController | |
{ | |
/// <summary> | |
/// Controls audio using the Windows CoreAudio API | |
/// from: http://stackoverflow.com/questions/14306048/controling-volume-mixer |
This file contains hidden or 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
// This file was initially generated by Windows Terminal 1.0.1401.0 | |
// It should still be usable in newer versions, but newer versions might have additional | |
// settings, help text, or changes that you will not see unless you clear this file | |
// and let us generate a new one for you. | |
// To view the default settings, hold "alt" while clicking on the "Settings" button. | |
// For documentation on these settings, see: https://aka.ms/terminal-documentation | |
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", |
This file contains hidden or 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
// ==UserScript== | |
// @name ricky_xpath | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://*/* | |
// @match http://*/* | |
// @grant none | |
// ==/UserScript== |
This file contains hidden or 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 ! pgrep ssh-agent > /dev/null; then | |
rm -f /tmp/ssh-auth-sock | |
eval "$(ssh-agent -s -a /tmp/ssh-auth-sock)" | |
ssh-add /mnt/c/Users/Admin/.ssh/compax-gitlab | |
else | |
export SSH_AUTH_SOCK=/tmp/ssh-auth-sock | |
fi |
This file contains hidden or 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
gitall() { | |
find . -mindepth 2 -maxdepth 2 -name .git -type d -execdir echo \; -execdir pwd \; -execdir git $1 \; | |
} | |
mvnall() { | |
find . -mindepth 2 -maxdepth 2 -name pom.xml -type f -execdir echo \; -execdir pwd \; -execdir mvn $1 \; | |
} |
This file contains hidden or 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 { mqtt, io, iot } from 'aws-crt'; | |
import express = require('express'); | |
const config = { | |
"keyPath": "config/abcd-private.pem.key", | |
"certPath": "config/abcd-certificate.pem.crt", | |
"caPath": "config/AmazonRootCA3.pem", | |
"clientId": "my-client-id", | |
"topic": "my-topic", | |
"endpoint": "xyz-ats.iot.eu-west-1.amazonaws.com" |
This file contains hidden or 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
<template> | |
<require from="norm-comp"></require> | |
<require from="less-comp"></require> | |
<require from="list-comp"></require> | |
<h1>Getting view model of containerless custom element</h1> | |
<list-comp> | |
<norm-comp text="item one, normal"></norm-comp> | |
<norm-comp text="item two, normal"></norm-comp> |
This file contains hidden or 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
<template> | |
<require from="my-comp"></require> | |
<h1>Aurelia I18N update-value</h1> | |
<my-comp title="simple"></my-comp> | |
<p>${'client:title' & t}</p> | |
</template> |
This file contains hidden or 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
<template> | |
<h1>Aurelia Debounce</h1> | |
<div ref="areaContainer"> | |
<h2>Textbox:</h2> | |
<div style="border:1px solid blue; padding: 1em; margin: 1em;"> | |
<input value.bind="myMap['masterkey']" placeholder="type here" /> | |
</div> |
This file contains hidden or 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
<template> | |
<h1>Aurelia KeyUp/Down</h1> | |
<div> | |
<h2>KeyUp:</h2> | |
<div style="border:1px solid blue; padding: 1em; margin: 1em;" keyup.delegate="handleKeyUp($event)"> | |
<input value.bind="myText & debounce:800" placeholder="type here" /> | |
</div> |
NewerOlder