Skip to content

Instantly share code, notes, and snippets.

View yugongwen's full-sized avatar

于功文 yugongwen

View GitHub Profile
@yugongwen
yugongwen / sketch-never-ending.md
Created December 20, 2017 07:59 — forked from Bhavdip/sketch-never-ending.md
Modify Sketch to never ending trial

###Sketch trial non stop

Open hosts files:

$ open /private/etc/hosts

Edit the file adding:

127.0.0.1 backend.bohemiancoding.com

127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com

/*!
* jQuery JavaScript Library v3.1.1
* https://jquery.com/
*
* Includes Sizzle.js
* https://sizzlejs.com/
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license
* https://jquery.org/license
@yugongwen
yugongwen / main.js
Created December 7, 2016 08:28
main.js
/*
Inspiration came from the Dribble shot
"Cut Copy Share Delete"
by Srikant Shetty
https://dribbble.com/shots/2428762-Cut-Copy-Share-Delete
*/
$('button').on('click',function(){
$(this)
.addClass("is-active")
.delay(800)
@yugongwen
yugongwen / copy.html
Last active December 7, 2016 08:09
copy.html
<!DOCTYPE html>
<html>
<head>
<title>copy cut shared</title>
<link rel="stylesheet" type="text/css" href="styles/copy.css">
</head>
<body>
<div class="container">
<button class="cut">
@yugongwen
yugongwen / copy.css
Last active December 7, 2016 08:08
Cut Copy Share Delete
* {
box-sizing: border-box;
}
body {
width: 100%;
height: 100%;
margin: 4%;
overflow: hidden;
background: #a3fcff;