⭐ ❗ ❕ ❓ ❔ 💩 ✋ 💬 👀
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 (process.platform === 'win32') { | |
var readline = require('readline'); | |
var readlineInterface = readline.createInterface({ | |
input: process.stdin, | |
output: process.stdout | |
}); | |
readlineInterface.on('SIGINT', function () { | |
process.emit('SIGINT'); | |
}); | |
} |
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
.bg-white { | |
background-color: #252f3f; | |
} | |
.community-feed { | |
background-color: #374151; | |
} | |
body, | |
.community-menu { |
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
Show hidden characters
{ | |
"React Native Web widget": { | |
"scope": "typescriptreact", | |
"prefix": "rn-widget", | |
"description": "RNW widget with standard imports and props", | |
"body": [ | |
"import * as React from 'react';", | |
"import { Component } from 'react';", | |
"import { View } from 'react-native';", | |
"import { styles } from './$TM_FILENAME_BASE.styles';", |
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> | |
<head> | |
<meta charset="utf-8"> | |
<title>dgrid scroll test</title> | |
<link rel="stylesheet" href="dgrid/css/dgrid.css"> | |
</head> | |
<body> | |
<div id="grid"></div> |
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
define([ | |
'immutable/immutable', | |
], function (immutable) { | |
var MemoryStore = function MemoryStore () { | |
this.constructor.apply(this, arguments); | |
}; | |
MemoryStore.prototype = { | |
constructor: function (options) { | |
options = options || {}; |
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
// This is a typical throttle implementation with the difference that it doesn't discard | |
// the final invocation - instead it runs it at the next valid timeslice. | |
throttleBoss: function(callback, delay) { | |
var ready = true, | |
args = null; | |
return function throttled() { | |
var context = this; |
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 MyGrid = declare([OnDemandGrid, Selector]); | |
Object.defineProperty(MyGrid.prototype, { | |
collection: { | |
get: function () { | |
return this._collection; | |
}, | |
set: function (value) { | |
this._collection = value; | |
} | |
} |
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> | |
<body> | |
<script> | |
var dojoConfig = { | |
baseUrl: 'dojo2' | |
}; | |
</script> | |
<!-- - -> |