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
## https://oj.leetcode.com/problems/find-minimum-in-rotated-sorted-array/ | |
class Solution: | |
def findMin(self, nums): | |
mem = list() | |
mem.append(nums[0]) | |
mem = self.findMinRecur(nums, mem) | |
return mem[0] |
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
library(ggplot2) | |
library(rworldmap) | |
library(ggmap) | |
cd = read.csv("NA-1990-2002-Monthly.csv") | |
year = cd$YEAR | |
month = cd$MONTH | |
time = paste(year, month, sep="_") | |
temp = cd$TMP |
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 gulp = require('gulp'), sass = require('gulp-sass'), browserify = require('browserify'), | |
concat = require('gulp-concat'), glob = require('glob'), uglify = require('gulp-uglify'), | |
source = require('vinyl-source-stream'), buffer = require('vinyl-buffer'), sourcemaps = require('gulp-sourcemaps'), | |
gutil = require('gulp-util'), babelify = require('babelify'), rename = require("gulp-rename"), | |
watch = require('gulp-watch'), yargs = require('yargs'), gulpif = require('gulp-if'); | |
let args = yargs.argv; | |
let isProd = !!(args.prod); | |
let _compileScripts = () => { |
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 argparse | |
import sys | |
import httplib2 | |
import re | |
import json | |
from googleapiclient.discovery import build | |
from oauth2client import client | |
from oauth2client import file | |
from oauth2client import tools |
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
var callrailGoogleMaps = { | |
getNumbers: function() { | |
var self = this; | |
window.CallTrk.getSwapNumbers(null, function(nums) { | |
self.swapNumbers(nums); | |
}); | |
}, | |
getMapPoints: function() { | |
if (mapping !== undefined) { | |
return mapping.mapPoint.alllocmap.points; |
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 { TimelineLite, TweenLite } from 'gsap'; | |
const asGsapped = (WrappedComponent) => { | |
return class GsappedComponent extends React.PureComponent { | |
constructor(props) { | |
super(props); | |
} |
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'; | |
const withScrolllock = (WrappedComponent) => { | |
return class ScrolllockComponent extends React.Component { | |
constructor(props) { | |
super(props); | |
this.y = null; | |
this.ref = 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
const decorateLink = (destinationUrl) => { | |
if (ga !== undefined && typeof ga.getAll === 'function') { | |
const trackers = ga.getAll(); | |
if (trackers.length > 0) { | |
const linker = new window.gaplugins.Linker(trackers[0]); | |
return linker.decorate(destinationUrl); | |
} | |
} | |
return destinationUrl; | |
} |
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 { | |
CacheModuleOptions, | |
CacheOptionsFactory, | |
Injectable, | |
} from '@nestjs/common'; | |
import { LoggerService } from '@src/common/logger.service'; | |
import { ConfigOptions, ConfigService } from '@src/config/config.service'; | |
import * as redisCacheStore from 'cache-manager-redis-store'; | |
@Injectable() |
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
3 | |
-OEChem-01172103382D | |
19 19 0 1 0 0 0 0 0999 V2000 | |
5.1350 1.3450 0.0000 O 0 0 0 0 0 0 0 0 0 0 0 0 | |
6.8671 0.3450 0.0000 O 0 0 0 0 0 0 0 0 0 0 0 0 | |
2.5369 -0.1550 0.0000 O 0 0 0 0 0 0 0 0 0 0 0 0 | |
3.4030 1.3450 0.0000 O 0 0 0 0 0 0 0 0 0 0 0 0 | |
5.1350 0.3450 0.0000 C 0 0 3 0 0 0 0 0 0 0 0 0 | |
6.0010 -0.1550 0.0000 C 0 0 3 0 0 0 0 0 0 0 0 0 |
OlderNewer