Skip to content

Instantly share code, notes, and snippets.

View lackneets's full-sized avatar
🤗
Sorry I am super busy. I may respond in weeks or months

Lackneets Chang (小耀博士) lackneets

🤗
Sorry I am super busy. I may respond in weeks or months
  • TAROBO Investment Advisors Ltd.
  • Taipei, Taiwan
View GitHub Profile
# frozen_string_literal: true
if Rake::Task.task_defined?('webpacker:clean')
puts %(Task webpacker:clean has already been defined. The monkey patch located in "#{__FILE__}" can be removed.)
else
module WebPackerClean
def clean
return if !config.public_output_path.exist? || !config.public_manifest_path.exist?
count_to_keep = 2
@jrichardsz
jrichardsz / convertSheet2Json.gs
Last active January 4, 2024 13:09 — forked from daichan4649/convertSheet2Json.gs
spreadsheet as json api using Google Apps Script
/* Source: https://gist.github.com/daichan4649/8877801 */
function doGet(e) {
//tab name in sheet
var sheetName = "Sheet 1";
//key in url of document
var sheetId = "1234...";
var book = SpreadsheetApp.openById(sheetId);
var sheet = book.getSheetByName(sheetName);
@jazinheira
jazinheira / gist:bbbfa384f1f4d631ec656835c334d186
Last active April 19, 2018 02:37
Disposable Email Blacklist
facebook.com qq.com 0-mail.com 027168.com 0815.ru 0815.ry 0815.su 0845.ru 0clickemail.com 0wnd.net 0wnd.org 0x207.info 1-8.biz 100likers.com 10mail.com 10mail.org 10minut.com.pl 10minutemail.cf 10minutemail.co.uk 10minutemail.co.za 10minutemail.com 10minutemail.de 10minutemail.ga 10minutemail.gq 10minutemail.ml 10minutemail.net 10minutesmail.com 10x9.com 123-m.com 12houremail.com 12minutemail.com 12minutemail.net 140unichars.com 147.cl 14n.co.uk 1ce.us 1chuan.com 1fsdfdsfsdf.tk 1mail.ml 1pad.de 1st-forms.com 1to1mail.org 1zhuan.com 20email.eu 20email.it 20mail.in 20mail.it 20minutemail.com 2120001.net 21cn.com 24hourmail.com 24hourmail.net 2fdgdfgdfgdf.tk 2prong.com 30minutemail.com 33mail.com 36ru.com 3d-painting.com 3l6.com 3mail.ga 3trtretgfrfe.tk 4-n.us 418.dk 42o.org 4gfdsgfdgfd.tk 4mail.cf 4mail.ga 4warding.com 4warding.net 4warding.org 5ghgfhfghfgh.tk 5gramos.com 5mail.cf 5mail.ga 5oz.ru 5x25.com 60minutemail.com 672643.net 675hosting.com 675hosting.net 675hosting.org 6hjgjhgkilkj.tk 6ip.us 6mail.cf 6m
@bl4ck5un
bl4ck5un / responsive-semantic-ui.css
Created May 12, 2017 03:20
Responsive helpers (mobile-only etc.) for semantic-ui
/* Semantic UI has these classes, however they're only applicable to*/
/* grids, containers, rows and columns.*/
/* plus, there isn't any `mobile hidden`, `X hidden` class.*/
/* this snippet is using the same class names and same approach*/
/* plus a bit more but to all elements.*/
/* see https://github.com/Semantic-Org/Semantic-UI/issues/1114*/
/* Mobile */
@media only screen and (max-width: 767px) {
[class*="mobile hidden"],
@subhaze
subhaze / JavaScript NG.sublime-syntax
Last active September 29, 2023 14:58
very start of Angular 2 sublime syntax file
%YAML 1.2
---
# See http://www.sublimetext.com/docs/3/syntax.html
name: JavaScript NG
file_extensions:
- js
- ng.js
scope: source.js.ng
contexts:
main:
@willpatera
willpatera / Google-Sheet-Form-Post.md
Last active November 9, 2024 15:22
Post to google spreadsheet from html form

Overview

This collection of files serves as a simple static demonstration of how to post to a google spreadsheet from an external html <form> following the example by Martin Hawksey

Depreciation Warning: This code is not maintained, and should be seen as reference implementation only. If you're looking to add features or update, fork the code and update as needed.

Run example

You should be able to just open index.html in your browser and test locally.

@rowej83
rowej83 / responsive-helpers
Created July 23, 2014 13:01
Hidden/Visible responsive helper classes for PureCSS Framework - using pixels or EMs
/* pure-hidden-xs */
@media screen and (max-width:567px) {
.pure-visible-sm{display:none}
.pure-visible-md{display:none}
.pure-visible-lg{display:none}
.pure-visible-xl{display:none}
.pure-hidden-xs{display:none}
}
/* pure-hidden-sm */
@media screen and (min-width:568px) and (max-width:767px) {
@lackneets
lackneets / insertScripts.js
Last active August 29, 2015 14:02
insertScripts in console
(function insertScripts(src) {
if (src instanceof Array && src.length) {
insertScripts(src.shift())
return insertScripts(src);
}
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = src;
document.head.appendChild(script);
})([
setInterval(function () {
// 取得網頁上所有連結
var a = document.getElementsByTagName('a');
// 針對每個連結跑一次
for (var i in a) {
// 檢查是不是真的是連結
if (a.hasOwnProperty(i)) {
// 檢查是不是讚的連結
if (a[i].className == "UFILikeLink") {
// 檢查是不是還沒按過讚
@lttlrck
lttlrck / gist:9628955
Created March 18, 2014 20:34
rename git branch locally and remotely
git branch -m old_branch new_branch # Rename branch locally
git push origin :old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote