Skip to content

Instantly share code, notes, and snippets.

@pi-chan
pi-chan / index.html
Created February 13, 2023 02:32
firebase initial index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Welcome to Firebase Hosting</title>
<!-- update the version number as needed -->
<script defer src="/__/firebase/9.17.1/firebase-app-compat.js"></script>
<!-- include only the Firebase features as you need -->
@pi-chan
pi-chan / style.css
Created August 27, 2021 02:37
twitterのユーザースタイル例
div[aria-label="タイムライン: トレンド"] {
display: none;
}
aside[aria-label="おすすめユーザー"] {
display: none;
}
@pi-chan
pi-chan / gist:765fb620202adaabb735f65bc26700b3
Created March 17, 2021 08:27
*scratch*を消さないようにする
;; *scratch*を消さないようにする
(defun my-make-scratch (&optional arg)
(interactive)
(progn
;; "*scratch*" を作成して buffer-list に放り込む
(set-buffer (get-buffer-create "*scratch*"))
(funcall initial-major-mode)
(erase-buffer)
(when (and initial-scratch-message (not inhibit-startup-message))
(insert initial-scratch-message))
Pod::Spec.new do |s|
s.name = "EasyImagy"
s.version = "0.4.0"
s.summary = "Makes it easy to process images in Swift"
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.homepage = "https://github.com/koher/EasyImagy"
s.author = { "SOMTD" => "koher@koherent.org" }
s.source = { :git => "https://github.com/koher/EasyImagy.git", :tag => "0.4.0" }
s.platform = :ios, '9.0'
s.requires_arc = true
@pi-chan
pi-chan / Folly.podspec
Created June 13, 2018 04:06
Folly podspec for v2018.06.11.00
Pod::Spec.new do |spec|
spec.name = 'Folly'
spec.version = '2018.06.11.00'
spec.license = { :type => 'Apache License, Version 2.0' }
spec.homepage = 'https://github.com/facebook/folly'
spec.summary = 'An open-source C++ library developed and used at Facebook.'
spec.authors = 'Facebook'
spec.source = { :git => 'https://github.com/facebook/folly.git',
:tag => "v#{spec.version}" }
spec.module_name = 'folly'
@pi-chan
pi-chan / persist.patch
Created May 3, 2018 21:44
mobx-persist導入の差分
diff --git a/App.js b/App.js
index 411a196..5b9d526 100644
--- a/App.js
+++ b/App.js
@@ -6,15 +6,24 @@
import React, { Component } from 'react';
import { Provider } from 'mobx-react';
+import { create } from 'mobx-persist';
+import { AsyncStorage } from 'react-native';
@pi-chan
pi-chan / .gitignore
Created May 5, 2017 00:09
gitignore for Python
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
# Distribution / packaging
.Python
@pi-chan
pi-chan / screenshots.rb
Created June 8, 2016 12:24
4.7inchの画像から無理矢理全サイズひねり出すスクリプト
targets = {
'3.5' => '540x960 -bordercolor "#F5F5F5" -border 50x0',
'4.0' => '640x1136!',
'4.7' => '750x1334!',
'5.5' => '1242x2208!'
}
targets.each do |k, v|
(1..4).each do |i|
system "mkdir #{k}inch"
@pi-chan
pi-chan / todoist.rb
Created January 17, 2016 11:04
Add tasks to Todoist
require 'todoist'
tasks = %W(
hoge
fuga
)
Todoist::Base.setup('token')
project = Todoist::Project.all.select{|project| project.name == "proj name"}.first
@pi-chan
pi-chan / simple_form_bootstrap.rb
Created October 26, 2015 08:45
simple_form_bootstrap.rb
# Use this setup block to configure all options available in SimpleForm.
SimpleForm.setup do |config|
config.error_notification_class = 'alert alert-danger'
config.button_class = 'btn btn-default'
config.boolean_label_class = nil
config.wrappers :vertical_form, tag: 'div', class: 'form-group', error_class: 'has-error' do |b|
b.use :html5
b.use :placeholder
b.optional :maxlength