Skip to content

Instantly share code, notes, and snippets.

View keima's full-sized avatar
🐔
WINNER WINNER CHICKEN DINNER!

Kouta Imanaka keima

🐔
WINNER WINNER CHICKEN DINNER!
View GitHub Profile
@wasabeef
wasabeef / daily-ktlint.yml
Created September 3, 2019 07:18
Scheduled ktlint with Github Actions
# .github/workflows/daily-ktlint.yml
name: Android CI (Ktlint)
on:
schedule:
# Daily 7am (JST)
- cron: '00 22 * * *'
jobs:
@JosiasSena
JosiasSena / DeCryptor.java
Last active September 12, 2023 12:40
Encryptor and Decryptor for data encryption.decryption using the Android KeyStore.
/**
_____ _____ _
| __ \ / ____| | |
| | | | ___| | _ __ _ _ _ __ | |_ ___ _ __
| | | |/ _ \ | | '__| | | | '_ \| __/ _ \| '__|
| |__| | __/ |____| | | |_| | |_) | || (_) | |
|_____/ \___|\_____|_| \__, | .__/ \__\___/|_|
__/ | |
|___/|_|
*/
@maxim
maxim / gh-dl-release
Last active April 29, 2024 08:55
Download assets from private Github releases
#!/usr/bin/env bash
#
# gh-dl-release! It works!
#
# This script downloads an asset from latest or specific Github release of a
# private repo. Feel free to extract more of the variables into command line
# parameters.
#
# PREREQUISITES
#
@dmarcato
dmarcato / strip_play_services.gradle
Last active December 21, 2022 10:10
Gradle task to strip unused packages on Google Play Services library
def toCamelCase(String string) {
String result = ""
string.findAll("[^\\W]+") { String word ->
result += word.capitalize()
}
return result
}
afterEvaluate { project ->
Configuration runtimeConfiguration = project.configurations.getByName('compile')
public class CircularProgressDrawable extends Drawable
implements Animatable {
private static final Interpolator ANGLE_INTERPOLATOR = new LinearInterpolator();
private static final Interpolator SWEEP_INTERPOLATOR = new DecelerateInterpolator();
private static final int ANGLE_ANIMATOR_DURATION = 2000;
private static final int SWEEP_ANIMATOR_DURATION = 600;
private static final int MIN_SWEEP_ANGLE = 30;
private final RectF fBounds = new RectF();
@henteko
henteko / deploygate#1.md
Last active August 29, 2015 14:01
Bakusoku Iterations Tokyo 1 メモ

Bakusoku Iterations Tokyo 1

DeployGateについて

  • gfxさんの発言がきっかけでこのイベントをやった
  • deploygate勉強会をやりたい!やろう!

deploygateの生い立ち

  • deploygateを作る前
    • mixiの公式アプリを作ってた
  • 一人で開発してて色々めんどくさかった
@yoshimurawork
yoshimurawork / resample.hpp
Last active January 3, 2019 07:14
サンプルレート変換のコードです。
#pragma once
#include <vector>
#include <cassert>
#include <cmath>
#include <algorithm>
namespace resample {
// 再近傍補間 (補間しない)
template <class T>
@shunirr
shunirr / cpufreq
Last active March 24, 2021 15:15
VAIO Pro に Ubuntu を入れた時の省電力設定
#!/usr/bin/env ruby
exit false unless %{ondemand powersave performance}.index(ARGV[0])
(0..3).each do |i|
system "sudo su -c 'echo #{ARGV[0]} > /sys/devices/system/cpu/cpu#{i}/cpufreq/scaling_governor'"
end
@keyboardr
keyboardr / FragmentUtils.java
Last active March 8, 2019 05:30
Utility method for getting the appropriate parent of a Fragment for a given callback interface.
import android.support.v4.app.Fragment;
public class FragmentUtils {
/**
* @param fragment
* The Fragment whose parent is to be found
* @param parentClass
* The interface that the parent should implement
* @return The parent of fragment that implements parentClass,
802 名前:おさかなくわえた@kzk_moverさん 投稿日:2013/03/07(金) 16:42:24 ID:s2RHsW2o
上に割引券についての話がありましたけど
私は@repeatedly先生の割引チケットの券を捨ててしまって後悔した立場でした
ガールズバーのでしたけど
かなり近所のガールズバーの券がまさに大量(数種類も集めてて机一つめいっぱい使って)という感じでした
入社2年目ぐらいから「こんなにあるんだからもうもらってこないでよ」と@repeatedlyに言い続けたのですが
毎回全然行動してくれずに言葉を濁す@repeatedlyにキレてしまい
留守中に業者を呼んで引き取ってもらえるものは引き取ってもらいました