Skip to content

Instantly share code, notes, and snippets.

@stepney141
stepney141 / BookmarkAPI_en.md
Last active April 4, 2023 01:45
(DEPRECATED) Twitter Undocumented Endpoints for Bookmark
@shunirr
shunirr / criminal_jc.md
Last active February 26, 2024 05:51
女子中学生チケット詐欺事件

criminal_jc

Aligning images

This is a guide for aligning images.

See the full Advanced Markdown doc for more tips and tricks

left alignment

@omz
omz / Add Web Tab.py
Last active December 3, 2023 23:33 — forked from steventroughtonsmith/Add Web Tab.py
Insert a custom browser tab into Pythonista
# coding: utf-8
from objc_util import *
import console
import urllib
import dialogs
WKWebView = ObjCClass('WKWebView')
UIViewController = ObjCClass('UIViewController')
UIBarButtonItem = ObjCClass('UIBarButtonItem')
NSURLRequest = ObjCClass('NSURLRequest')
@retorillo
retorillo / css-position-and-z-index.md
Created November 25, 2015 07:38
CSSのpositionとz-indexの関係 (absoluteやfixedよりもstaticを手前に表示する)

CSSのpositionとz-indexの関係 (absoluteやfixedよりもstaticを手前に表示する)

positionの種類

CSSのpositionは、static, absolute, relative, fixedがあり、デフォルトではstaticです。

要素のZ軸上での重なりは必ずしも、z-indexの値や、HTMLで記述した順番通りではなく、 このpositionとも密接な関係があります。

positionとZ軸上の位置関係

<?php
class RecentStatsCommand extends Command {
public function execute($args) {
if(isset($args[2])) {
$user = $args[2];
} else {
$args[2] = $this->getDefaultUser($this->getUser()->id_str);
$user = $args[2];
}
@voluntas
voluntas / webrtc.rst
Last active June 27, 2024 02:25
WebRTC コトハジメ
@wasnot
wasnot / file0.java
Last active September 3, 2020 14:04
[Android][Lollipop]UsageStatsManagerでgetRunningAppぽく取得する ref: http://qiita.com/wasnot/items/305850755de860b66fda
// 前面のアプリのComponentNameだけ取得しています。
// Taskと違ってあまり情報がありませんが。。
public static List<ComponentName> getForegroundAppList(Context context, int size) {
List<ComponentName> nameList = new ArrayList<ComponentName>();
// どこかでpermissionを確認します。
if (!checkPermission(context))
return nameList;
long time = System.currentTimeMillis();
UsageStatsManager usm = (UsageStatsManager) context.getSystemService("usagestats");
@cucmberium
cucmberium / gist:e687e88565b6a9ca7039
Last active February 28, 2024 01:23
Twitterの検索API & Twitterでの検索術

twitterの検索術 (search/tweetssearch/universal)

search/tweets では一週間以上前のツイートは検索できないので注意

search/universal は公式のConsumerKey/ConsumerSecretでないと使用できない

当方では一切の責任を負いません