Skip to content

Instantly share code, notes, and snippets.

View neet's full-sized avatar

Ryō Igarashi neet

View GitHub Profile
@uupaa
uupaa / get.path.for.node.js.md
Last active December 5, 2023 11:18
node.js で絶対パスや相対パスを取得する方法 npm __dirname

node.js でパスを取得する方法についてのメモ

$ node ~/hoge/Foo.js/a.js

を実行したときに、

  • process.argv[1] から、node コマンドに指定された a.js のパス( ~/hoge/Foo.js/a.js )を取得できます
@tag1216
tag1216 / index.html
Last active September 2, 2017 06:00
Qiitaトレンド
<!-- index.html -->
<html>
<head>
<title>Qiitaトレンド</title>
<meta charset="UTF-8"/>
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
<link href="http://nvd3.org/assets/css/nv.d3.css" rel="stylesheet" type="text/css">
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
@faithandbrave
faithandbrave / emscripten_cmake_build.md
Last active October 11, 2022 05:08
EmscriptenとCMakeでのビルド方法

EmscriptenとCMakeでのビルド方法

Emscriptenは、C++をJavaScriptにコンパイルする、LLVMベースのコンパイラ。

このドキュメントでは、特定のプロジェクトに依存せず、Emscripten向けに、CMakeを使用してC++プロジェクトをビルドする方法を紹介する。

バージョン

このドキュメントで扱う各ツールのバージョンは、以下のものとする:

@skypenguins
skypenguins / minor_songs_of_idolmaster.md
Last active January 21, 2023 16:40
アイマスの非売品&入手困難・不可&マイナーな曲やCD一覧

【アイマスの非売品&入手困難・不可&マイナーな曲やCD一覧】

CD

765

  • 入手困難なCDとしてやたらと有名である。
@JamesMessinger
JamesMessinger / README.md
Last active March 9, 2024 17:58
VSCode GitHub Markdown Theme

GitHub Markdown Theme for Visual Studio Code

This CSS stylesheet allows you to preview markdown files in VSCode using GitHub's mardown theme. This CSS was taken directly from the official GitHub Markdown repo. I replaced their top-level .markdown-body class with the body tag so it would work in VSCode, and added styling for the html tag to match GitHub's fixed-width container.

Instructions

  1. Copy the CSS file to your computer
    Copy the github-markdown.css file below to your computer. You can put it anywhere you want, but I chose to put it in the same folder as my VSCode settings file.

  2. Edit your VSCode settings
    If you want to use this theme for all of your projects, then edit your User Settings file. If you just want to use this them

@ZipFile
ZipFile / Pixiv App API.yaml
Last active April 28, 2023 01:31
Unofficial API specification extracted from Pixiv Android App
swagger: '2.0'
info:
title: "Pixiv App API"
description: "Unofficial API specification extracted from Pixiv Android App v5.0.17"
version: "1.0"
host: app-api.pixiv.net
schemes:
- https
@chun37
chun37 / week-of-month.py
Created July 17, 2017 17:55
年月日から何月の第何何曜日か、祝日であれば祝日名をプリント
# -*- coding: utf-8 -*-
import datetime
import sys
try:
g, y, m, d = sys.argv
except:
exit()
try:
t = datetime.date(int(y), int(m), int(d))
try:
@chun37
chun37 / GetFF.py
Last active August 17, 2017 03:37
TwitterのFF内の人のIDをdbにまとめる
# -*- coding: utf-8 -*-
import tweepy
import sqlite3
import os
import time
if __name__ == "__main__":
auth = tweepy.OAuthHandler(CK, CS)
auth.set_access_token(AK, AS)
api = tweepy.API(auth)
path1 = os.path.isfile("followers.db")
@chun37
chun37 / yokohama_gomi.py
Last active August 17, 2017 03:37
横浜市資源循環局のイーオくんとお話できるよ
# -*- coding: utf-8 -*-
import requests
import json
import re
import sys
print u"このプログラムは横浜市資源循環局のイーオくんとお話できるプログラムだよ"
print u"終了したいときは[Ctrl+C]を押すか[/exit]と送ってね"
print u"---" * 20
print u"イーオだよ。こんにちは。"
print u"ゴミの名前を教えてくれたら、捨て方を案内するよ。粗大ごみの手数料を知りたい場合は、「自転車の手数料」のように話しかけてね。"
@shunirr
shunirr / criminal_jc.md
Last active February 26, 2024 05:51
女子中学生チケット詐欺事件

criminal_jc