Skip to content

Instantly share code, notes, and snippets.

View gc373's full-sized avatar
:octocat:

みなみ@​​geek gc373

:octocat:
View GitHub Profile
@gc373
gc373 / sample.md
Last active December 15, 2018 16:23
sample.md

markdown記法とは

  • 見た目を整えるやつ
  • 実際に書いている文章は➚のRawから見れるやつ

テキストだけで 文章の見た目を整えることができる

こういった なんかも
つくれる ので 便利
@gc373
gc373 / index.js
Created August 16, 2017 03:18
・・・・・・・・・というググラビリティが低いグループが出した「CD」というググラビリティの低いCDの感想をTwitterから取得するスクリプト
const Twitter = require('twitter'),
fs = require('fs'),
jconv = require('jconv'),
client = new Twitter({
consumer_key: '',
consumer_secret: '',
access_token_key: '',
access_token_secret: ''
}),
moment = require('moment'),
@gc373
gc373 / twisave.js
Created August 2, 2017 14:04
twitterの画像を検索して全部保存するやつ
const Twitter = require('twitter'),
req = require('request'),
fs = require('fs'),
client = new Twitter({
consumer_key: '',
consumer_secret: '',
access_token_key: '',
access_token_secret: ''
}),
moment = require('moment'),
+import dom from 'vd';
+
+// Localization prototype
+export default {
+ locale: "ja",
+ meta: _ => {
+ return [dom('meta http-equiv="content-language" content="ja"')]
+ },
+ title: (name) => {
@gc373
gc373 / 1.4.4.sh
Created June 22, 2017 12:11
mstdn1.4.3 to 1.4.4
#!/bin/bash
#####################################################
# This script is intended for unattended upgrades
# of a standard Mastodon installation.
# Uncommited changes i.e. in config files
# will be stashed and restored.
# This script is not intended for forks with commits
# as the latest release will be checked out.
# Database migrations and asset-precompilation will
# run automatically.
@gc373
gc373 / package.json
Last active June 20, 2017 04:44
mastodon-police
{
"name": "t.co-police",
"version": "1.0.0",
"description": "",
"main": "police.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "gc373",
"license": "MIT",
@gc373
gc373 / mstdn1.4.3.sh
Last active June 18, 2017 01:59
Now , update my Mastodon instance 1.4.1 to 1.4.3
#!/bin/bash
#####################################################
# This script is intended for unattended upgrades
# of a standard Mastodon installation.
# Uncommited changes i.e. in config files
# will be stashed and restored.
# This script is not intended for forks with commits
# as the latest release will be checked out.
# Database migrations and asset-precompilation will
# run automatically.
@gc373
gc373 / checkUpdateChannel.js
Last active June 30, 2017 15:12
Youtubeのチャンネル/ユーザーに新規動画が追加されたら自分のプレイリストに追加するやつ
/*
* Check Youtube channel.
* When upload a video to target channel, add to my playlist.
*
* Copyright © 2017 gc373
* This work is free. You can redistribute it and/or modify it under the
* terms of the Do What The Fuck You Want To Public License, Version 2,
* as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.
* http://www.wtfpl.net/
*/
@gc373
gc373 / getAllVedeos.js
Last active June 17, 2017 01:42
dotstokyoの動画一覧を取得するやつ
/*
* Youtubeのチャンネル/ユーザーの動画を自分の再生リストに追加するやつ(制御版)
* YouTube Data API [Your Key]
* https://console.developers.google.com/apis/library
*
* Copyright © 2017 gc373
* This work is free. You can redistribute it and/or modify it under the
* terms of the Do What The Fuck You Want To Public License, Version 2,
* as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.
* http://www.wtfpl.net/