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
// 보낸 거: 'ㅂㅈㄷㄱㅅㅁㄴㅇㄹㅎㅋㅌㅊㅍㅂㅈㄷㄱㅅㅁㄴㅇㄹㅎㅋㅌㅊㅍㅂㅈㄷㄱㅅㅁㄴㅇㄹㅎㅋㅌㅊㅍㅂㅈㄷ' (딱 70자) | |
// 받은 거: | |
{ msisdn: '821090460332', | |
to: '827045155654', | |
messageId: '0B0000009799FB32', | |
text: 'ㅂㅈㄷㄱㅅㅁㄴㅇㄹㅎㅋㅌㅊㅍㅂㅈㄷㄱㅅㅁㄴㅇㄹㅎㅋㅌㅊㅍㅂㅈㄷㄱㅅㅁㄴㅇㄹㅎㅋㅌㅊㅍㅂㅈㄷ', | |
type: 'unicode', | |
keyword: '?????????????????????????????????????????????', | |
'message-timestamp': '2017-11-14 07:21:18' } | |
{ msisdn: '821090460332', |
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
const debugAnalyticsJs = false; | |
window.analytics = { | |
trackSubmit() {}, | |
trackClick() {}, | |
trackLink() {}, | |
trackForm() {}, | |
pageview() {}, | |
identify(...args) { | |
debugAnalyticsJs && console.log('Analytics.js identify:', ...args); |
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
// 원본 | |
import { map } from 'mobx'; | |
const myMap = map(); | |
// 목표 | |
import { ObservableMap } from 'mobx'; | |
const myMap = new ObservableMap(); |
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
// original code | |
import { map } from 'mobx'; | |
const myMap = map(); | |
// target code | |
import { ObservableMap } from 'mobx'; | |
const myMap = new ObservableMap(); |
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
// The default is `babylon`, | |
// but since we use Flow to add types to our code base | |
// the parser is changed to flow to handle type declarations | |
export const parser = 'flow'; | |
// https://github.com/facebook/jscodeshift#transform-module | |
export default function transformer(fileInfo, api, options) { | |
const j = api.jscodeshift; | |
const root = j(fileInfo.source); |
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
export const parser = 'flow'; | |
export default function transformer(fileInfo, api, options) { | |
const j = api.jscodeshift; | |
const root = j(fileInfo.source); | |
let needsInject = false; | |
// Look for all classes defined in the file with decorators | |
const classesWithDecorators = root |
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
export const parser = 'flow'; | |
export default function transformer(fileInfo, api, options) { | |
const j = api.jscodeshift; | |
const root = j(fileInfo.source); | |
let needsInject = false; | |
// Look for any calls to observable | |
const observerCallExpressions = root |
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
import Cocoa | |
class ViewController: NSViewController { | |
var statusBar = NSStatusBar.system() | |
var statusBarItem : NSStatusItem = NSStatusItem() | |
var leMenu : NSMenu = NSMenu() | |
var openMenuItem : NSMenuItem = NSMenuItem() | |
var exitMenuItem : NSMenuItem = NSMenuItem() | |
override func awakeFromNib() { |
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.exports.configs = { | |
recommended: { | |
rules: { | |
'tutorial/no-full-fp-lib': 2 | |
} | |
} | |
}; |
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
"use strict"; | |
var rule = require("../../../lib/rules/no-full-fp-lib"), | |
RuleTester = require("eslint").RuleTester; | |
RuleTester.setDefaultConfig({ | |
parserOptions: { | |
ecmaVersion: 6, | |
sourceType: "module" | |
} |
NewerOlder