Skip to content

Instantly share code, notes, and snippets.

View pavetw17's full-sized avatar

Huy pavetw17

View GitHub Profile
@pavetw17
pavetw17 / gist:bfab1b32abe8b0252ecb20c944c113e2
Created November 6, 2019 09:39 — forked from andyyou/gist:3052671
C# Controls abbreviation
btn Button chk CheckBox ckl CheckedListBox
cmb ComboBox dtp DateTimePicker lbl Label
llb LinkLabel lst ListBox lvw ListView
mtx MaskedTextBox cdr MonthCalendar icn NotifyIcon
nud NumeircUpDown pic PictureBox prg ProgressBar
rdo RadioButton rtx RichTextBox txt TextBox
tip ToolTip tvw TreeView wbs WebBrowser
容器
flp FlowLayoutPanel grp GroupBox pnl Panel
@pavetw17
pavetw17 / FileReader-image-preview.html
Created February 11, 2019 11:21 — forked from Arguseye/FileReader-image-preview.html
FileReader 解析Excel文件
<!doctype html>
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>Image preview example</title>
<script type="text/javascript">
oFReader = new FileReader(), rFilter = /^(?:image\/bmp|image\/cis\-cod|image\/gif|image\/ief|image\/jpeg|image\/jpeg|image\/jpeg|image\/pipeg|image\/png|image\/svg\+xml|image\/tiff|image\/x\-cmu\-raster|image\/x\-cmx|image\/x\-icon|image\/x\-portable\-anymap|image\/x\-portable\-bitmap|image\/x\-portable\-graymap|image\/x\-portable\-pixmap|image\/x\-rgb|image\/x\-xbitmap|image\/x\-xpixmap|image\/x\-xwindowdump)$/i;
oFReader.onload = function (oFREvent) {
document.getElementById("uploadPreview").src = oFREvent.target.result;
@pavetw17
pavetw17 / GriddleExample.jsx
Created September 16, 2018 00:17 — forked from aberkow/GriddleExample.jsx
Full demonstration of Griddle.js custom components
import React, { Component } from 'react';
import ReactDOM, { render } from 'react-dom';
import Griddle from 'griddle-react';
const mockData = require('./mockData.json');
/*
Keep these 3 points in mind while working with custom Griddle components.
1. Custom components need to be in the same file as the Griddle table. They can't be imported or required.
2. They need to come _before_ the columnMetadata variable
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.