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
// Tested with react-data-grid v5.0.4, earlier versions MAY NOT HAVE cellRangeSelection | |
// And it won't show any errors if you try this with an earlier version, so use at least v5.0.4 | |
import React, { Component } from 'react'; | |
import { range } from 'lodash'; | |
import ReactDataGrid from 'react-data-grid'; // Tested with v5.0.4, earlier versions MAY NOT HAVE cellRangeSelection | |
const columns = [ | |
{ key: 'id', name: 'ID', editable: true }, | |
{ key: 'title', name: 'Title', editable: true }, | |
{ key: 'count', name: 'Complete', editable: true }, |
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
module StringCalculator | |
class << self | |
def add string_numbers = nil | |
return 0 unless string_numbers | |
delimeters = get_delimeters string_numbers | |
num_array = string_numbers.split delimeters | |
raise 'negative numbers not allowed' if num_array.join().match(/-[0-9]/) |
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 Hide Jobs | |
// @namespace http://github.com/Tiny-Giant | |
// @version 1.0.0.1 | |
// @description Hides references to Stack Overflow Jobs | |
// @author @TinyGiant | |
// @include /https?:\/\/(meta\.)?stackoverflow\.com/.*/ | |
// @grant none | |
// ==/UserScript== | |
/* jshint -W097 */ |