Skip to content

Instantly share code, notes, and snippets.

View mygoare's full-sized avatar
:octocat:

Gore mygoare

:octocat:
View GitHub Profile
@mygoare
mygoare / new_file0
Last active October 9, 2015 03:53
codepen collections
css3 animation:
http://codepen.io/anon/pen/rOMaJp?editors=110
http://codepen.io/anon/pen/meEKLm?editors=110
http://codepen.io/anon/pen/vNXNaj?editors=110
Flex three columns layout:
http://codepen.io/anon/pen/NGgNZG?editors=110
@mygoare
mygoare / jd.md
Last active August 29, 2015 14:26

Company Profile:

Mesheven Technologies(创享桥信息科技有限公司) is a stage-one startup focused on the Internet of Things (IoT) and the full range of related technologies. Mesheven’s hardware / software / cloud computing platforms will serve as the foundation for the creation of powerful device ecosystems that connect devices to the internet & make their data available for the organization of large-scale device “meshes”. This wealth of data will enable the creation of a powerful new generation of networked, intelligent systems that leverage the collection of data from multiple sources to make more intelligent ‘decisions’ about the world in which these devices operate. Mesheven’s solutions span the complete range of these technologies and provide the foundations on which other organizations can build their next generation of electronics products for this new world.

Job Description:

This is an opportunity for a Software Development Engineer with a high level of adaptability and drive, to get in on the ground f

@mygoare
mygoare / drag.html
Last active August 29, 2015 14:23
dragover & drop example
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
<style type="text/css">
#dropzone
{
position: absolute;
'use strict';
var gulp = require('gulp');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var less = require('gulp-less');
var minifyCss = require('gulp-minify-css');
var rename = require('gulp-rename');
var size = require('gulp-size');
var bower = require('main-bower-files');
@mygoare
mygoare / gist:5218e009e226ae59d191
Last active August 29, 2015 14:21
read permission from fs stats mode property
var permString = '0' + (stats.mode & parseInt('777', 8)).toString(8);
e.g.
if stats.mode equal 33261, then it will return '0755'
parseInt('0755', 8) // return 493
parseInt('0666', 8) // return 438, it is default value of node
@mygoare
mygoare / Layout_engines_and_Javascript_engines.md
Created May 17, 2015 16:28
Major browsers' layout_engines and javascript_engines
Layout Engine Javascript Engine
Opera presto / blink Carakan / v8
Chrome blink v8
Internet Explorer Trident Chakra
Microsoft Edge (Spartan) EdgeHTML Chakra
Firefox Gecko Spidermonkey
Safari Webkit JavascriptCore
@mygoare
mygoare / dns
Created April 15, 2015 04:11
public dns list
#公共DNS
##国外
- Google DNS: `8.8.8.8` `8.8.4.4`
- OpenDNS: `208.67.222.222` `208.67.220.220`
- OpenNIC: `106.186.17.181`(Japan) `128.199.248.105`(Singapore) `203.248.252.2`(Korea)
- Comodo Secure DNS: `8.26.56.26` `8.20.247.20`
- Norton DNS: `198.153.192.1` `198.153.194.1`
- Norton ConnectSafe DNS: `199.85.126.20` `199.85.127.20`
---
@mygoare
mygoare / ec8bbd6c44919d116edd7053973e168c
Last active August 29, 2015 14:18
极路由翻墙(1s, 2)
0to255.com
10musume.com
123rf.com
12bet.com
12vpn.com
141hongkong.com
173ng.com
1984bbs.com
1984bbs.org
1bao.org
@mygoare
mygoare / ES5 Newnewss
Last active August 29, 2015 14:18 — forked from sym3tri/ES5 Newnewss
es5 features
- Trailing commas are ok
- No reserved words for property names
- NaN, Infinity, undefined : are all constants
- parseInt() defaults to radix 10
- /regexp/ produces new reg ex object every time
- JSON.parse(), JSON.stringify()
- Function.prototype.bind
- String.prototype.trim
- Array.prototype.every, filter, forEach, indexOf, lastIndexOf, map, reduce, reduceRight, some,
- Date.now()
@mygoare
mygoare / convertStrToObj.js
Last active August 29, 2015 14:13
Convert javascript string to object
// 临时解决方案而已 (It is not a good part code)
var convertStrToObj = function(str)
{
var val = str.slice(1, -1);
var properties = val.split(', ');
var obj = {};
properties.forEach(function(property) {
var index = property.indexOf(':');
var pre = property.slice(0, index).trim();