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 { isNumber, isNull } from 'lodash-es'; | |
export fun1() { | |
// do nothing | |
} | |
export isNull(...args) { | |
return isNull(...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
// common.js | |
export * from './some' // export some | |
export function thing() {} | |
// index.js | |
import { some, thing } from './common.js' |
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
// copy from rambda/es/allPass.js | |
import _curry1 from './internal/_curry1'; | |
import curryN from './curryN'; | |
import max from './max'; | |
import pluck from './pluck'; | |
var allPass = /*#__PURE__*/_curry1(function allPass(preds) { | |
return curryN(reduce(max, 0, pluck('length', preds)), function () { | |
var idx = 0; | |
var len = preds.length; |
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 { isNull } from 'lodash-es'; | |
var fun = 1; | |
fun = function scope(...args) { | |
return isNull(...args); | |
} | |
export { fun } |
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 { isNull } from 'lodash-es'; | |
export function scope(...args) { | |
return isNull(...args); | |
} | |
console.log(scope(null)); |
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
// module scope start | |
// Block | |
{ // <- scope start | |
} // <- scope end | |
// Class | |
class Foo { // <- scope start |
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
class LittleReduxSimulator extends Component { | |
constructor(props) { | |
super(props); | |
this.state = this.props.init(); | |
} | |
dispatch = value => { | |
this.setState(this.props.update(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
(* module stack *) | |
(* 用OCaml的module system 写一个类似C的Stack *) | |
module type Element = sig | |
type t | |
end | |
module Stack (Ele : Element) | |
= struct | |
type elementType = Ele.t |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace CalHomework | |
{ | |
/// <summary> |
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
""" | |
Author: DZ Chan | |
Date: 2017-09-24 | |
Description: This is a animation generator | |
""" | |
from PIL import Image, ImageDraw | |
import sys, math | |
''' |
NewerOlder