Skip to content

Instantly share code, notes, and snippets.

View MozyOk's full-sized avatar
😆
My Brain is Open!

Mozy Okubo MozyOk

😆
My Brain is Open!
View GitHub Profile
@1021ky
1021ky / Swagger Editorで生成されたコード.py
Created June 25, 2019 22:30
openBD APIの仕様をOpenAPIで書いたもの
# coding: utf-8
"""
openBD API
[openBDプロジェクト(カーリル・版元ドットコム)](https://openbd.jp)によって提供される書誌情報・書影を、だれでも自由に使える、高速なAPI. # noqa: E501
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
@kawaz
kawaz / install-pam_tid-and-pam_reattach.sh
Last active March 22, 2024 06:20
macOSの sudo で TouchID が使えるようにする(tmux内の利用も対応)
#!/bin/bash
# Qiita記事 https://qiita.com/kawaz/items/0593163c1c5538a34f6f
set -e
set -o pipefail
# pam_tidの存在チェック(間違えてLinux環境などで実行されたら中断する)
[[ -f /usr/lib/pam/pam_tid.so.2 ]] || exit 1
[[ "${OSTYPE:0:6}" == "darwin" ]] || exit 1
# /etc/pam.d/sudo を念のためターミナルに出力しておく(似非バックアップ)
@souyakuchan
souyakuchan / README.md
Last active June 10, 2019 07:59
Drug Discovery Raid Battle 2018 presented by @souyakuchan
MCKqJpFhiw1fB7ZproSx6HEzMk5amXWC3z MAzxtwfx1jPMVUYUm7X4853Drqz6adzro9
MHsp2V3dLDcM9Yj6uYmHFzzqyFMf88UZg4 MMQ618AoG6za5fErcbLTqn7gSBhBGVt16r
M9mqz2BCtNqHqWbkvS32CtK4L4VfgLn6xH MModBRTmRH15b3kPt1yCiezXCB9GUnc6eN
MModBRTmRH15b3kPt1yCiezXCB9GUnc6eN MHEdr5penp4CP9g75E7m2bR5hF35nmXLz6
MGjBioYdohQN1NUfDwqAUsnaX3H2TtfgC6 MAgGr74Sqb3Qv9W6b1xUmq99BKwifpZjgQ
MAgGr74Sqb3Qv9W6b1xUmq99BKwifpZjgQ MMQ618AoG6za5fErcbLTqn7gSBhBGVt16r
MTPvHFGu6L1NUjxN6RZEcHSDXiCTNVrVzy MMQ618AoG6za5fErcbLTqn7gSBhBGVt16r
MLU6CUnkgTQ6DWznDoN1Smog5R15iuZ9Uo MMQ618AoG6za5fErcbLTqn7gSBhBGVt16r
M8yKeovUqE4SAphq7vbtMm6uhm6gMPF9a8 MMQ618AoG6za5fErcbLTqn7gSBhBGVt16r
@lgvalle
lgvalle / firebase-scraping.js
Last active September 23, 2021 01:17
Firebase cloud function to scrap html and send the content with push notifications
const rp = require('request-promise');
const cheerio = require('cheerio');
const functions = require('firebase-functions');
const admin = require('firebase-admin');
admin.initializeApp();
const db = admin.firestore();
exports.allyPallyFarmersMarket = functions.https.onRequest((request, response) => {
@subfuzion
subfuzion / curl.md
Last active July 3, 2024 11:43
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@arjunvenkat
arjunvenkat / gist:1115bc41bf395a162084
Last active January 12, 2024 05:04
Seeding a Rails database with a CSV file

How to seed a Rails database with a CSV file

1. Setup

First, Create a folder inside of lib called seeds

Put your CSV file example.csv into the lib/seeds folder. In the example below, the file is called real_estate_transactions.csv

Make sure you've created a resource with the appropriate columns to match your seed data. The names don't have to match up.

@yukidarake
yukidarake / type-100million-chars-per-sec.md
Created October 29, 2014 10:01
仕事を高速でこなす方法

秒速で1億字叩く条件

秒速

きっかけ

naoya_itoの火を噴いたシェルtips
http://togetter.com/li/652438

キーリピート高速化

カーソル移動やバックスペースで文字を消すのが速くなります。

@jonathantneal
jonathantneal / README.md
Last active March 30, 2023 10:22
What is the difference between a sprite, a glyph, an icon, and a symbol?

Sprites, Glyphs, Icons, and Symbols

What is the difference between a sprite, a glyph, an icon, and a symbol? They are all images. They all represent objects, places, and ideas. What makes them different from one another?

A sprite is something you interface with. For instance, a sprite may represent a character or an item in a video game.

A glyph is a typographical character that represents something else. For example, the @ sign is a glyph that commonly represents the phrase at.

An icon is a direct representation of something else. For example, an icon that links to the contents of a hard drive would be a picture of a hard drive.