🔥 Blazing fast builds
😇 CommonJS bundle
🌲 .mjs
bundle
✨ .d.ts
bundle + type-checking
🧐 Source maps
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
{ | |
"title": " Thinkpad keyboard", | |
"rules": [ | |
{ | |
"description": "Fix Thinkpad keyboard scroll", | |
"manipulators": [ | |
{ "type": "basic", | |
"from": { | |
"pointing_button": "button3" | |
} |
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
window.addEventListener("popstate", function(args) {console.log("pop ", args);}, false); |
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
<template> | |
<label role="radio" tabindex="0"> | |
<input type="radio" v-on:change="clicked" name="r1" value="One" v-model="picked"> | |
<span>One</span> | |
</label> | |
<label role="radio" tabindex="0"> | |
<input type="radio" v-on:change="clicked" name="r1" value="Two" v-model="picked"> | |
<span>Two</span> | |
</label> |
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
<template> | |
<label role="radio" tabindex="0"> | |
<input type="radio" v-on:something="clicked" name="r1" value="One" v-model="picked"> | |
<span>One</span> | |
</label> | |
<label role="radio" tabindex="0"> | |
<input type="radio" v-on:something="clicked" name="r1" value="Two" v-model="picked"> | |
<span>Two</span> | |
</label> |
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 Vue from 'Vue'; | |
beforeCreate () { | |
this.$options = Vue.util.mergeOptions({ | |
data: function() { | |
return { | |
selectedItem: 8 | |
} | |
}, | |
computed: { |
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
@echo off | |
FOR /F "tokens=* USEBACKQ" %%F IN (`where sublime_text`) DO ( | |
SET st3Path=%%F | |
) | |
ECHO %st3Path% | |
rem add it for folders | |
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f | |
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3" /t REG_EXPAND_SZ /v "Icon" /d "%st3Path%,0" /f |
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
var SwaggerParser = require('swagger-parser'); | |
var fs = require('fs'); | |
var CodeGen = require('swagger-js-codegen').CodeGen; | |
SwaggerParser.validate('uber-v1.yaml').then( | |
function(api) { | |
var angularjsSourceCode = CodeGen.getAngularCode({ | |
className: 'UberV1', | |
swagger: api | |
}); |
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 getData(callback) { | |
var result = {}; | |
getJSONAsync('/users', | |
function(data) { | |
result.users = data; | |
getJSONAsync('/companies', | |
function(data) { | |
result.companies = data; | |
getJSONAsync('/contacts', |
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
<div style="position: fixed; background-color: green; top: 5%; bottom: 5%; left: 5%; right: 5%;"> | |
<div style="position: absolute; bottom: 0px; color: white;"> | |
Hi | |
</div> | |
</div> |
NewerOlder