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
// Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible). | |
// Tweak the makePrettyJSON_ function to customize what kind of JSON to export. | |
var FORMAT_ONELINE = 'One-line'; | |
var FORMAT_MULTILINE = 'Multi-line'; | |
var FORMAT_PRETTY = 'Pretty'; | |
var LANGUAGE_JS = 'JavaScript'; | |
var LANGUAGE_PYTHON = 'Python'; |
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
LOAD DATA LOW_PRIORITY LOCAL INFILE 'C:\\Users\\InoY\\DOWNLO~1\\927D~1.CSV' | |
REPLACE INTO TABLE `pomoyka`.`jira_tasks` | |
CHARACTER SET utf8mb4 FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' ESCAPED BY '"' LINES TERMINATED BY '\r\n' IGNORE 1 | |
LINES (`key`, `resume`, @created, @updated, `status_from`, `status_to`, @status_date) | |
SET `created` = STR_TO_DATE(@created, '%d.%m.%Y %H:%i:%s'), | |
`updated` = STR_TO_DATE(@updated, '%d.%m.%Y %H:%i:%s'), | |
`status_date` = STR_TO_DATE(@status_date, '%d.%m.%Y %H:%i:%s') | |
; |
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
const puppeteer = require('puppeteer') | |
const { PendingXHR } = require('pending-xhr-puppeteer') | |
;( async () => { | |
const browser = await puppeteer.launch({ | |
headless: true, | |
product: 'firefox', | |
// args, | |
}) |
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
type Without<T, U> = { [P in Exclude<keyof T, keyof U>]?: never }; | |
// this type is NOT work as expected | |
type XOR<T, U> = (T | U) extends object ? (Without<T, U> & U) | (Without<U, T> & T) : T | U; | |
// this type is work as expected | |
type XOR<T, U> = (T | U) extends Object ? (Without<T, U> & U) | (Without<U, T> & T) : T | U; | |
interface IValueWillChange<T> { | |
object: any; | |
type: "update"; |
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
const getRanges = arr => | |
arr | |
.reduceRight( | |
(prev, curr) => ( | |
prev.length | |
? ( | |
prev[0][0] === curr + 1 | |
? prev[0].unshift(curr) | |
: prev.unshift([curr]) | |
) && prev |
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
body { | |
background: #282B2F; | |
color: #E0E0E0 | |
} | |
a { | |
color: #F8F8F8 | |
} | |
*::selection { |
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
[ | |
{ | |
"active": true, | |
"from": "(\\n\\s+)([_a-zA-Z]+)(\\: function\\s?)", | |
"to": "$1$2", | |
"mods": "gim" | |
}, | |
{ | |
"active": true, | |
"from": "(\\n\\s+)([_a-zA-Z]+)\\(([a-z_\\{\\}\\=\\[\\]\\s\\,]+)?\\) {", |
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
.h-info li,.h-info p { | |
color: #cbcbcb; | |
} | |
.h-info a { | |
color: #558fab; | |
} | |
.h-info abbr { | |
border-bottom: 1px dotted #cbcbcb; |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>name</key> | |
<string>Monokai</string> | |
<key>settings</key> | |
<array> | |
<dict> | |
<key>settings</key> |
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 React from "react"; | |
import ReactDOM from "react-dom"; | |
const UserContext = React.createContext(); | |
const Donor = () => ( | |
<UserContext.Consumer> | |
{ | |
store => { | |
const { value, onChange } = store |
NewerOlder