Skip to content

Instantly share code, notes, and snippets.

View kaiinui's full-sized avatar

kaiinui kaiinui

View GitHub Profile
@rsattar
rsattar / SafariViewControllerAutlogin.m
Created September 15, 2015 21:15
SFSafariViewController autologin snippets
// Say this is in your app delegate
- (void) attemptAutologin
{
NSURL *autologinURL = ...some..url..that..does..autologin..on..your..server
self.safariViewController = [[SFSafariViewController alloc] initWithURL:autologinURL];
self.safariViewController.modalPresentationStyle = UIModalPresentationOverFullScreen;
self.safariViewController.view.alpha = 0.0;
[self.window.rootViewController presentViewController:self.safariViewController
animated:NO
@parrots
parrots / CachingInterfaceController.h
Created April 14, 2015 02:32
CachingInterfaceController
@import WatchKit;
@interface CachingInterfaceController : WKInterfaceController
- (void)updateLabel:(WKInterfaceLabel *)label withString:(NSString *)string;
- (void)updateLabel:(WKInterfaceLabel *)label asHidden:(BOOL)hidden;
- (void)updateImage:(WKInterfaceImage *)image withImageNamed:(NSString *)imageName;
- (void)updateImage:(WKInterfaceImage *)image withBaseNameForAnimation:(NSString *)baseName withRange:(NSRange)range duration:(NSTimeInterval)duration repeatCount:(NSInteger)repeatCount;
- (NSString *)currentImageNameForImage:(WKInterfaceImage *)image;

なんかダメだな、Qiita見てると 「恐らくはJavaScriptの達人であろう所のTwitterやGoogleのプログラマ達が取り組んですらあの体たらく、常人はJavaScript避けるべき」な主張してる人見かけるし、それって自分の無能を棚に上げてチャレンジしないって言ってるようにしか聞こえないし、それでいいとするならそれでいいけど、そんな悲しい主張、Qiitaみたいなエッジな技術者がたくさん集まるような場所ですんなよっていいたくなる。

Node学園に来てくれてる海外エンジニアはそんなの気にしないでUX最適にするっていうのにチャレンジしてるからあんなに活躍できてるわけで、なんでそんな主張して賛成してる奴多いんだよ。そんなんだから日本のweb開発遅れるんだよって言いたくなる。

@uupaa
uupaa / fp.now.md
Last active May 25, 2022 11:58
いまどきのガラケー事情

いまどきのガラケーと Flash Lite 開発事情

いまどきのガラケーコーディングがどうなっているか確認してみました。

ガラケーを取り巻く環境の変化

  • 停波による古い端末の一掃
    • docomo
      • 2006春モデル以前の端末が mova の停波により 2012/03/31 から利用不能に
  • au
@taea
taea / design_menter.md
Last active August 13, 2019 18:42
エンジニア向けデザインメンター(謎)をはじめて、2〜3ヶ月が経ちました

エンジニア向けデザインメンター(謎)をはじめて、2〜3ヶ月が経ちました

@ken_c_lo in 町田の部屋 新年会 2014-03-30

何やるの?

実際のプロジェクトに入って、エンジニアのデザイン業を支援する

デザインといっても広義。(案件のフェーズや人によってそれぞれ違うことやってる)

  • HTML
  • CSS
  • ビジュアルデザイン
@diverted247
diverted247 / vuejs.d.ts
Created March 15, 2014 20:06
Early Version of VueJS Type Defintion
declare var Vue: VueStatic;
interface VueObject{
}
interface VueMethods{
[n: string]: Function;
}
interface VueAttributes{
@ympbyc
ympbyc / FunctionalJs.md
Last active April 26, 2023 12:26
Functional JavaScript

Functional JavaScript

2013 Minori Yamashita ympby@gmail.com

-- ここにあなたの名前を追記 --

目次

@japboy
japboy / jade-ftw.md
Last active October 23, 2023 11:18
Jade について。

Jade FTW

こんにちは。今回は現実逃避を兼ねて Jade の素晴らしさをお伝えしたいと思います。

Jade とは何か

[Jade][0] は JST (JavaScript Templates) の一つであり、HTML を書くための[軽量マークアップ言語][1] である [Haml][2] に影響を受けた JavaScript テンプレートエンジンでもあります。

@igrigorik
igrigorik / pss.rb
Created May 28, 2012 18:18
pagespeed insights API ruby example
require 'net/https'
require 'json'
require 'uri'
#
# Use your project key to query the API
# 1) go to Google API Console: https://code.google.com/apis/console/
# 2) go to "Services" tab and enable "Page Speed Online API"
# 3) go to "API Key" tab and copy your "API Key"
#
@nikreiman
nikreiman / gist:2310318
Created April 5, 2012 11:55
Take a screenshot of your Android app and email it somewhere (no root access required)
public static void sendFeedbackScreenshot(final Activity activity) {
try {
final View rootView = activity.getWindow().getDecorView().findViewById(android.R.id.content);
rootView.setDrawingCacheEnabled(true);
Bitmap bitmap = rootView.getDrawingCache();
// Activity.getCacheDir() won't work here, because the email intent can't
// access your app's internal storage. So you need to find a good temporary
// location in SD card storage.
File outputDir = new File(android.os.Environment.getExternalStorageDirectory(), "tmp");
File outputFile = new File(outputDir, "screenshot.png");