Skip to content

Instantly share code, notes, and snippets.

View bxzhou2008's full-sized avatar

bunsen bxzhou2008

View GitHub Profile
@suhaotian
suhaotian / Echart.tsx
Created November 17, 2021 08:57
echarts with typescript
import React, { useState, useRef, useEffect, useMemo, useLayoutEffect, useImperativeHandle, forwardRef, Ref } from 'react'
import echarts, { ECOption } from './echarts-ref';
export type EchartProp = {
option: ECOption,
style?: {
width: string,
height: string
}
className?: string
@joshcarr
joshcarr / gist:648079
Created October 26, 2010 23:26
SVN bash script to export changed files
#!/bin/bash
# USAGE:
# ./svn-export revision-from revision-to repository target-directory
# ./svn-export 20 25 svn://localhost/myrepository .
if [ ! $1 ] || [ ! $2 ] || [ ! $3 ] || [ ! $4 ]; then
echo "Please enter a revision from, revision to, SVN repository, and target directory"
exit
fi