Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 { DebounceSettings } from "lodash"; | |
import lodashDebounce from "lodash/debounce"; | |
import isBoolean from "lodash/isBoolean"; | |
import isEmpty from "lodash/isEmpty"; | |
import React from "react"; | |
export const isNotFilterValue = (value: any) => { | |
return !isBoolean(value) && isEmpty(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
import React from "react"; | |
import styled, { keyframes } from "react-emotion"; | |
import { getConfig } from "../../getConfig"; | |
import Wrapper from "./Wrapper"; | |
export interface SelectFilterProps { | |
field: { | |
id: string; | |
name: string; |
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
/* DEBUG WITH DISCORD */ | |
const request = require("request"); | |
const log = content => new Promise((resolve, reject) => { | |
const options = { | |
method: 'POST', | |
url: `${discordWebhookURL}`, // <- setup your discord webhook url here | |
headers: { 'content-type': 'application/json' }, | |
body: { content: "```json\n" + JSON.stringify(content, null, 2) + "\n```" }, | |
json: true | |
}; |
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
// Usage: | |
// 1. Paste this file into root directory | |
// 2. Exec `node gitlog.js > output.json` in a console | |
// 3. Do what you want with output.json \o/ | |
const exec = require('child_process').exec; | |
// see https://git-scm.com/docs/pretty-formats for placeholder codes | |
const fields = { | |
refs: { value: '%d', parser: a => a.replace(/[\(\)]/g, '').replace('->', ',').split(', ').map(a => a.trim()).filter(a => a) }, |
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
/* | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 | |
Unless required by applicable law or agreed to in writing, software | |
distributed under the License is distributed on an "AS IS" BASIS, | |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
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
#target photoshop | |
var document = app.activeDocument; | |
var itemsTypes = "obscured,hotspot,whole,shadow"; | |
var output = ""; | |
for ( var i = 0; i < document.layerSets.length; i++) { | |
validateLayerSet(document.layerSets[i]); | |
}; |
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
git rebase --onto XXX~1 XXX |
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
ls -1 *.json | while read jsonfile; do mongoimport -d support -c logs -file $jsonfile --jsonArray -type json; done |