Skip to content

Instantly share code, notes, and snippets.

@kaigouthro
kaigouthro / Pine_Script_5_Mini_Reference.md
Last active May 1, 2024 04:36
A minimal reference to pine script v5

Pine Mini-Reference for more information

Pine Script™ Operators

The following operators are available.

Operator Description
+ Adds two operands
@Barneybook
Barneybook / Telegram_it_group_list.md
Last active March 30, 2024 09:36
Telegram 資訊相關 群組清單
@henrytran9x
henrytran9x / facebook_api.php
Last active May 3, 2016 08:09
This API facebook URL get comment count,share count , like count from Link ..this Render json string
<?php
public static function get_the_fb_like( $url = '' ){
$pageURL = 'http://nextopics.com';
$url = ($url == '' ) ? $pageURL : $url; // setting a value in $url variable
$params = 'SELECT comment_count, share_count, like_count FROM link_stat WHERE url = "'.$url.'"';
$component = urlencode($params);
$url = 'http://graph.facebook.com/fql?q='.$component;
$fbLIkeAndSahre = json_decode(file_get_contents($url));
$getFbStatus = $fbLIkeAndSahre->data['0'];
return $getFbStatus;
@kyledrake
kyledrake / ferengi-plan.txt
Last active April 6, 2024 00:30
How to throttle the FCC to dial up modem speeds on your website using Nginx
# The blog post that started it all: https://neocities.org/blog/the-fcc-is-now-rate-limited
#
# Current known FCC address ranges:
# https://news.ycombinator.com/item?id=7716915
#
# Confirm/locate FCC IP ranges with this: http://whois.arin.net/rest/net/NET-165-135-0-0-1/pft
#
# In your nginx.conf:
location / {
@denny0223
denny0223 / SITCON 2014 IRC log
Created March 15, 2014 13:56
SITCON 2014 IRC log
--- Day changed Sat Mar 15 2014
00:16 < Davy_CC> ::part #sitcon
00:17 < Davy_CC> DennyHuang: RSChiang: 好了不用擔心了~
00:17 <@DennyHuang> Davy_CC: (y)
00:18 <@DennyHuang> QQ 沒有搶到今天第一則
00:24 < Davy_CC> www
00:58 -!- DennyHuang changed the topic of #sitcon to: SITCON 學生計算機年會 http://sitcon.org | UTF-8 | 自我介紹表 http://goo.gl/1xPUXU | SITCON 2014 早上見囉XD
01:13 * timcheng
02:54 < pp_> bye
02:54 < pp_> logout
@hit1205
hit1205 / hit1205_excel_col_no_list_gen.php
Last active January 1, 2016 17:39
給定參數 "末欄編號" 即可產生 Excel 欄位編號陣列 A ~ Z, AA ~ ZZ, AAA ~ ZZZ, ...,參考了 http://php.net/range#107440 這篇 comment 內的寫法,但更正其 3 位數及更高位數下的編號。
<?php
// 建立 Excel 欄位編號
function hit1205_excel_col_no_list_gen($end = 'Z', $prefix = ''){
$cols = array();
$len = strlen($end);
$a2z = range('A', 'Z');
foreach($a2z as $letter){
$col = $prefix . $letter;
$cols[] = $col;
@edokeh
edokeh / index.js
Last active May 7, 2024 12:31
佛祖保佑,永无 BUG
//
// _oo0oo_
// o8888888o
// 88" . "88
// (| -_- |)
// 0\ = /0
// ___/`---'\___
// .' \\| |// '.
// / \\||| : |||// \
// / _||||| -:- |||||- \
@ihower
ihower / gist:6132576
Last active June 12, 2019 05:42
Git commit without commit
# First commit
echo "hello" | git hash-object -w --stdin
git update-index --add --cacheinfo 100644 ce013625030ba8dba906f756967f9e9ca394464a hello.txt
git write-tree
git commit-tree aaa96c -m "First commit"
git update-ref refs/heads/master 30b060d9a7b5e93c158642b2b6f64b2b758da40d
# Second commit
@fourdollars
fourdollars / launchpad_me.ls
Created July 17, 2013 05:58
A simple NodeJS server made by ExpressJS and node-request that uses https://help.launchpad.net/API/SigningRequests to get personal information from https://launchpad.net/ .
#!/usr/bin/env lsc
require! express
require! request
app = express!
oauth_consumer_key = 'just+testing'
var oauth_token
var oauth_token_secret
@hadl
hadl / microtime_diff.php
Last active March 5, 2021 04:05
PHP Microtime Diff -- Calculate a precise time difference
<?php
/**
* Calculate a precise time difference.
* @param string $start result of microtime()
* @param string $end result of microtime(); if NULL/FALSE/0/'' then it's now
* @return flat difference in seconds, calculated with minimum precision loss
*/
function microtime_diff($start, $end = null)
{
if (!$end) {