Skip to content

Instantly share code, notes, and snippets.

View Hellowor1d's full-sized avatar

Hellowor1d Hellowor1d

View GitHub Profile
@Hellowor1d
Hellowor1d / fabric.arrow.js
Created January 5, 2019 08:03 — forked from linchpinstudios/fabric.arrow.js
Fabric JS Arrow
fabric.Arrow = fabric.util.createClass(fabric.Line, {
type: 'Arrow',
initialize: function(element, options) {
options || (options = {});
this.callSuper('initialize', element, options);
},
toObject: function() {
@Hellowor1d
Hellowor1d / Dockerfile
Last active September 21, 2018 14:59
dockerfile-fe-env
FROM mhart/alpine-node:10
MAINTAINER Hellowor1d <103459776@qq.com>
# 添加挂载点
VOLUME [ "/app" ]
# 设置默认工作目录
WORKDIR /app
@Hellowor1d
Hellowor1d / pdfjs-file-parser.js
Created December 13, 2017 03:13 — forked from frontenddeveloping/pdfjs-file-parser.js
Parse uploaded pdf file by PDF.js for number of pages and count links
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/es6-shim/0.34.1/es6-shim.js"></script>
<script src="https://code.jquery.com/jquery-2.1.4.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
@Hellowor1d
Hellowor1d / git-large-files.py
Created October 12, 2017 03:27 — forked from zerolab/git-large-files.py
Find large files in git repo
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Python script to find the largest files in a git repository.
# The general method is based on the script in this blog post:
# http://stubbisms.wordpress.com/2009/07/10/git-script-to-show-largest-pack-objects-and-trim-your-waist-line/
#
# The above script worked for me, but was very slow on my 11GB repository. This version has a bunch
# of changes to speed things up to a more reasonable time. It takes less than a minute on repos with 250K objects.
@Hellowor1d
Hellowor1d / git-large-files.py
Created October 12, 2017 03:27 — forked from zerolab/git-large-files.py
Find large files in git repo
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Python script to find the largest files in a git repository.
# The general method is based on the script in this blog post:
# http://stubbisms.wordpress.com/2009/07/10/git-script-to-show-largest-pack-objects-and-trim-your-waist-line/
#
# The above script worked for me, but was very slow on my 11GB repository. This version has a bunch
# of changes to speed things up to a more reasonable time. It takes less than a minute on repos with 250K objects.
@Hellowor1d
Hellowor1d / git-delete-history.sh
Created October 12, 2017 03:27 — forked from zerolab/git-delete-history.sh
Script to permanently delete files/folders form your git repository
#!/bin/bash
set -o errexit
# Author: David Underhill
# Script to permanently delete files/folders from your git repository. To use
# it, cd to your repository's root and then run the script with a list of paths
# you want to delete, e.g., git-delete-history path1 path2
if [ $# -eq 0 ]; then
exit 0
@Hellowor1d
Hellowor1d / cloudSettings
Last active May 11, 2017 06:28
Visual Studio Code Sync Settings GIST
{"lastUpload":"2017-05-11T06:27:20.921Z","extensionVersion":"v2.7.0"}
@Hellowor1d
Hellowor1d / Sublime
Last active November 4, 2016 09:52
HelloWor1d Sublime Settings
sublime settings
@Hellowor1d
Hellowor1d / Atom
Last active November 4, 2016 09:52
automatic sync settings from linuxMint-GE60 Atom Editor
atom settings