-
平日の業務時間内に見つけた問題である関係で(自分ルールで)所属を入れていますが、他社サービスに対する調査や報告は業務とは一切関係のない個人の活動として行っています。
-
文責はmala個人にあります。お問い合わせなどありましたら個人宛にどうぞ。TwitterのDMや任意の文字列 @ma.la
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 | 黒髪 | |
---|---|---|
1 | 赤髪 | |
1 | 青髪 | |
1 | 緑髪 | |
1 | 茶髪 | |
1 | 桃髪 | |
1 | 銀髪 | |
1 | 金髪 | |
2 | ツインテール | |
2 | ポニーテール |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Validates that MX record exists for domain to prevent typos and also block by MX servers | |
# Use by adding to app/models/user.rb | |
# validates_with EmailMXValidator, if: :email_changed? | |
# frozen_string_literal: true | |
require 'resolv' | |
class EmailMXValidator < ActiveModel::Validator | |
def validate(user) | |
domain = user.email.split('@', 2).last | |
mxs = Resolv::DNS.new.getresources(domain, Resolv::DNS::Resource::IN::MX).to_a.map { |e| e.exchange.to_s } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.querySelector("#global-actions").appendChild(document.querySelector("#global-actions>li.moments.js-moments-tab")); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# YOUR_ACCESS_TOKEN には https://www.pushbullet.com/#settings/account から取得したトークンを使用 | |
PUSHBULLET_TOKEN=YOUR_ACCESS_TOKEN | |
# CCacheを使う | |
export USE_CCACHE=1 | |
workdir=`pwd` | |
mkdir -p $workdir/log/success $workdir/log/fail $workdir/rom |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env fontforge -lang=py -script | |
# -*- coding: utf-8 -*- | |
import fontforge | |
from datetime import date | |
# Open Sans のあるディレクトリのパス | |
opensans_path = "./Open_Sans" | |
# M+ のあるディレクトリのパス |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
require 'twitpic-full' | |
Plugin.create(:mikutter_twitpic_uploader) do | |
UserConfig[:twitpic_upimg] = "" | |
UserConfig[:twitpic_message] = "" | |
twitpic = TwitPic::Client.new() | |
twitpic.configure do |conf| | |
# 気にしたらいけない。 | |
conf.api_key = "9b1d5ca2076eaa7029c83717dd641b47" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: snippet -*- | |
# name: うわああああああ | |
# key: uwa | |
# -- | |
( ^o^)${1:なんかセリフ} | |
( ˘⊖˘)。o(待てよ、なんで$1${2:なん}だ…?) | |
|${3:place}| ┗(☋` )┓三 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="portrait"> | |
<img src="{PortraitURL-128}" alt="User" /> | |
</div> |