Skip to content

Instantly share code, notes, and snippets.

View ordinarycas's full-sized avatar
💭
Share idea.

JHAN | チチャン ordinarycas

💭
Share idea.
View GitHub Profile
@ordinarycas
ordinarycas / MeteorWebsiteCrawler.py
Created February 18, 2024 09:46
Meteor程式設計版聯署計算,撰寫日:2017-04-30
#coding=utf-8
import requests
from bs4 import BeautifulSoup
import lxml
#送出GET請求到遠端伺服器,伺服器接受請求後回傳<Response [200]>,代表請求成功
res = requests.get("https://meteor.today/article/share/589d8823ef79368d7d69bc0f")
#經過BeautifulSoup內lxml編輯器解析的結果
soup = BeautifulSoup(res.text,'lxml')
#留言樓層
floor = (soup.select('h6')[3].text)
@ordinarycas
ordinarycas / font.md
Last active January 14, 2021 05:13
Free fonts download
@ordinarycas
ordinarycas / Instagram-followe.js
Last active October 23, 2023 13:01
I'd like to compare my Instagram followers/followings list!
// mathematically generate a wait time between 0.1 and 0.5 seconds, to prevent ratelimiting
// https://austinhuang.me/instagram-compare
const random_wait_time = (waitTime = 400) => new Promise((resolve, reject) => {
setTimeout(() => {
return resolve();
}, (Math.random() * waitTime + 100));
});
const ratelimit = () => new Promise((resolve, reject) => {
setTimeout(() => {
version: '3.7'
services:
wordpress:
depends_on:
- db
image: wordpress:latest
restart: always
ports:
- 8080:80
// rev 452
/********************************************************************************
* *
* Author : Angus Johnson *
* Version : 6.1.3 *
* Date : 19 January 2014 *
* Website : http://www.angusj.com *
* Copyright : Angus Johnson 2010-2014 *
* *
* License: *
@ordinarycas
ordinarycas / package-lock.json
Last active August 2, 2018 02:01
Node.js 建網管理
{
"name": "nodejs_learn",
"version": "1.0.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"mime": {
"version": "2.3.1",
"resolved": "https://registry.npmjs.org/mime/-/mime-2.3.1.tgz",
"integrity": "sha512-OEUllcVoydBHGN1z84yfQDimn58pZNNNXgZlHXSboxMlFvgI6MXSWpWKpFRra7H1HxpVhHTkrghfRW49k6yjeg=="
@ordinarycas
ordinarycas / gulpfile.js
Last active March 17, 2018 21:23
Gulpfile Settings For Personal
const gulp = require('gulp');
const pug = require('gulp-pug');
const sass = require('gulp-sass');
const babel = require('gulp-babel');
const uglify = require('gulp-uglify');
const concat = require('gulp-concat');
const htmlmin = require('gulp-htmlmin');
const imagemin = require('gulp-imagemin');
const cleanCSS = require('gulp-clean-css');
const sourcemaps = require('gulp-sourcemaps');
@ordinarycas
ordinarycas / .editorconfig
Last active April 18, 2018 01:41
File Settings for Company
# EditorConfig is awesome: http://EditorConfig.org
# top-most EditorConfig file
root = true
# 全域設定
[*]
indent_style = space
indent_size = 2
end_of_line = lf