Skip to content

Instantly share code, notes, and snippets.

View mrmcpowned's full-sized avatar

Christopher Rodriguez mrmcpowned

View GitHub Profile
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<polymer-element name="my-element">
<template>
<style>
:host {
GamepadList {0: undefined, 1: Gamepad, 2: undefined, 3: undefined, length: 4}0: undefined1: Gamepadaxes: Array[4]buttons: Array[16]connected: trueid: "Xbox 360 Controller (XInput STANDARD GAMEPAD)"index: 1mapping: "standard"timestamp: 728__proto__: Gamepadaxes: (...)get axes: () { [native code] }arguments: nullcaller: nulllength: 0name: ""__proto__: Empty() {}apply: apply() { [native code] }arguments: nullbind: bind() { [native code] }call: call() { [native code] }caller: nullconstructor: Function() { [native code] }length: 0name: "Empty"toString: toString() { [native code] }__proto__: Object<function scope><function scope>Global: WindowInfinity: Infinity$: (e,t){return new x.fn.init(e,t,r)}AnalyserNode: AnalyserNode() { [native code] }AnimationEvent: AnimationEvent() { [native code] }ApplicationCache: ApplicationCache() { [native code] }ApplicationCacheErrorEvent: ApplicationCacheErrorEvent() { [native code] }Array: Array() { [native code] }ArrayBuffer: ArrayBuffer() { [native code] }Attr: Attr() { [native c
GamepadList {0: undefined, 1: Gamepad, 2: undefined, 3: undefined, length: 4}0: undefined1: Gamepadaxes: Array[4]buttons: Array[16]connected: trueid: "Xbox 360 Controller (XInput STANDARD GAMEPAD)"index: 1mapping: "standard"timestamp: 728__proto__: Gamepadaxes: (...)get axes: () { [native code] }arguments: nullcaller: nulllength: 0name: ""__proto__: Empty() {}apply: apply() { [native code] }arguments: nullbind: bind() { [native code] }call: call() { [native code] }caller: nullconstructor: Function() { [native code] }length: 0name: "Empty"toString: toString() { [native code] }__proto__: Object<function scope><function scope>Global: WindowInfinity: Infinity$: (e,t){return new x.fn.init(e,t,r)}AnalyserNode: AnalyserNode() { [native code] }AnimationEvent: AnimationEvent() { [native code] }ApplicationCache: ApplicationCache() { [native code] }ApplicationCacheErrorEvent: ApplicationCacheErrorEvent() { [native code] }Array: Array() { [native code] }ArrayBuffer: ArrayBuffer() { [native code] }Attr: Attr() { [native c
var gamepadsChanged = false;
for (var i = 0; i < rawGamepads.length; i++) {
if (typeof rawGamepads[i] != gamepadSupport.prevRawGamepadTypes[i]) {
gamepadsChanged = true;
gamepadSupport.prevRawGamepadTypes[i] = typeof rawGamepads[i];
}
if (rawGamepads[i]){
gamepadSupport.gamepads.push(rawGamepads[i]);
.controller .stick.left {
display: none;
}
.controller .stick.right{
display: block;
}
.controller .arrows:before{
transform: translateX(8px);
}
@mrmcpowned
mrmcpowned / 0_reuse_code.js
Created March 15, 2016 02:05
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
// ==UserScript==
// @name Discord Direct Video Embed
// @namespace https://orangestar12.github.io/
// @version 0.1
// @description Converts uploaded videos that end in .webm and .mp4 into embedded video players.
// @author Orangestar
// @match https://discordapp.com/channels/*
// @grant none
// ==/UserScript==
.edit.xbox .sticks{
-webkit-filter: invert(1);
}
/*
So when dealing with CSS sprites, this is how we would normally
go about styling the HTML
*/
.custom .button{
position: absolute;
width:62px;
height:62px;
background: url(ps3-assets/face-buttons.png);
}
.ds4 .stick {
filter: brightness(2);
}