Skip to content

Instantly share code, notes, and snippets.

@iamchiwon
iamchiwon / ASAuthorizationControllerProxy.swift
Last active July 6, 2023 07:37
 Sign in with Apple + Rx
import AuthenticationServices
import RxCocoa
import RxSwift
import UIKit
@available(iOS 13.0, *)
extension ASAuthorizationController: HasDelegate {
public typealias Delegate = ASAuthorizationControllerDelegate
}
@sokuhatiku
sokuhatiku / config.yaml
Last active January 25, 2023 10:45
Verdaccio for Unitypackage
#
# This is the default config file. It allows all users to do anything,
# so don't use it on production systems.
#
# Look here for more config file examples:
# https://github.com/verdaccio/verdaccio/tree/master/conf
#
# path to a directory with all packages
storage: ./storage
@utgwkk
utgwkk / mysql-accumlate.md
Last active May 30, 2023 09:34
詳説 MySQLで累積和を求める方法

MySQL で累積和を求める方法

SELECT
    t1.accum_date
 , t1.count

Angular2 + JSPM cheat sheet

First time setup

  • install jspm beta: npm install -g jspm@beta
  • set up your project: jspm init
  • install dependencies: jspm install angular2 reflect-metadata zone.js es6-shim

This will create a jspm_packages folder, and a config.js file.

Open the config.js file - this file manages options for the System.js loader - tweak it as appropriate

@takashi1975
takashi1975 / AppDelegate.cpp
Last active August 29, 2015 14:06
Cocos2d-x v3.x マルチ解像度 例2
bool AppDelegate::applicationDidFinishLaunching() {
// initialize director
auto director = Director::getInstance();
auto glview = director->getOpenGLView();
if(!glview) {
glview = GLView::create("My Game");
director->setOpenGLView(glview);
}
//マルチ解像度
@y13i
y13i / ruby_aws_sdk_credentials.md
Last active July 4, 2022 05:32
Rubyとaws-sdkとcredentials

前書き

AWS SDKを使ったアプリケーションを作る時credentialsの扱いがいつも面倒なので、ベストプラクティス的なものを考えていきたい。

例として、

$ ruby myec2.rb list
@shield-9
shield-9 / config
Created March 8, 2014 10:46
GitでPullを高速化する方法。.git/configを次のように編集
[remote "origin"]
+ url = git://github.com/shield-9/opcache-dashboard.git
+ pushurl = git@github.com:shield-9/opcache-dashboard.git
- url = git@github.com:shield-9/opcache-dashboard.git
@hayajo
hayajo / gist:7982694
Created December 16, 2013 05:27
AngularJS の $http.post でリクエストパラメータが JSON じゃ困っちゃう感じなのでデフォルトを form-urlencoded にする
var module = angular.module('myApp');
module.config(function ($httpProvider) {
$httpProvider.defaults.transformRequest = function(data){
if (data === undefined) {
return data;
}
return $.param(data);
}
$httpProvider.defaults.headers.post = {
anonymous
anonymous / gist:6826502
Created October 4, 2013 14:08
Gradle設定例
buildscript {
repositories {
mavenCentral()
mavenRepo urls: 'http://twitter4j.org/maven2'
}
dependencies {
classpath 'com.android.tools.build:gradle:0.5.+'
classpath 'com.googlecode.androidannotations:androidannotations:2.7.1'
classpath 'com.googlecode.androidannotations:androidannotations-api:2.7.1'
classpath 'com.h2database:h2:1.3.173'
using System.IO;
using Excel;
using UnityEditor;
using UnityEngine;
public class ExcelDatalProcessor : AssetPostprocessor
{
//出力先.
private static readonly string exportPath = "Assets/Terasurware/App Data xlsx.asset";