Skip to content

Instantly share code, notes, and snippets.

@visamz
visamz / unwxapkg.py
Created January 1, 2018 03:46 — forked from feix/unwxapkg.py
#!/usr/bin/env python2
# usage python2 unwxapkg.py filename
import sys, os
import struct
class WxapkgFile(object):
nameLen = 0
name = ""
@visamz
visamz / cloudSettings
Last active May 21, 2019 14:48
Visual Studio Code Sync Settings GIST
{"lastUpload":"2019-05-21T14:48:20.367Z","extensionVersion":"v3.2.9"}
@visamz
visamz / cloudSettings
Last active July 19, 2018 08:00
Visual Studio Code Sync Settings GIST
{"lastUpload":"2018-07-19T08:00:45.533Z","extensionVersion":"v3.0.0"}
@visamz
visamz / npm_prompt.lua
Last active March 18, 2018 12:45
npm_prompt.lua:11: attempt to concatenate local 'package_version' (a nil value)
c:\cmder/vendor/clink-completions/npm_prompt.lua:11: attempt to concatenate local 'package_version' (a nil value)
The solution that worked for me was to edit the file:
{YOUR_PATH}/cmder/vendor/clink-completions/npm_prompt.lua
and overwrite the related lines to be this instead:
The original npm_prompt.lua was (BEFORE FIX)
...
local package_name = string.match(package_info, '"name"%s*:%s*"(%g-)"')
@visamz
visamz / timezones.js
Created December 10, 2015 05:38
timezone json
var PRE_REQUIREMENT = {
"timezones": [{
"text": "(Etc/GMT+12,-12:00) GMT-12:00",
"value": "Etc/GMT+12",
"offset": "-12:00"
}, {
"text": "(Etc/GMT+11,-11:00) GMT-11:00",
"value": "Etc/GMT+11",
"offset": "-11:00"
}, {
@visamz
visamz / css_resources.md
Last active August 29, 2015 14:27 — forked from jookyboi/css_resources.md
CSS libraries and guides to bring some order to the chaos.

Libraries

  • 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
  • Compass - Open source CSS Authoring Framework.
  • Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
  • Font Awesome - The iconic font designed for Bootstrap.
  • Zurb Foundation - Framework for writing responsive web sites.
  • SASS - CSS extension language which allows variables, mixins and rules nesting.
  • Skeleton - Boilerplate for responsive, mobile-friendly development.

Guides

@visamz
visamz / javascript_resources.md
Last active August 29, 2015 14:27 — forked from jookyboi/javascript_resources.md
Here are a set of libraries, plugins and guides which may be useful to your Javascript coding.

Libraries

  • jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
  • Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
  • AngularJS - Conventions based MVC framework for HTML5 apps.
  • Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
  • lawnchair - Key/value store adapter for indexdb, localStorage
@visamz
visamz / 0_reuse_code.js
Last active August 29, 2015 14:27
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@visamz
visamz / gist:a77e37329af2257b0b21
Created April 30, 2015 08:08
js 验证汉字的正则
/([\u4E00-\u9FA5]|[\uFE30-\uFFA0])/g.test('中国')
@visamz
visamz / dataset.js
Last active August 29, 2015 14:11
datatables-dataset
{
"data": [
{
"DT_RowId": "row_1", // DT_RowId 是主键,可自定义
//数据字段遵循 key: value
"users": { //users Model
"first_name": "Quynn",
"last_name": "Contreras",
"phone": "1-971-977-4681",
"site": "1"