Skip to content

Instantly share code, notes, and snippets.

View maoyama's full-sized avatar

Makoto Aoyama maoyama

View GitHub Profile
//
// Alamofire+Reactive.swift
// architecture
//
// Created by MakotoAoyama on 9/8/17.
//
import Foundation
import ReactiveSwift
import Alamofire
//
// UIScrollView+rearchedBottom.swift
// architecture
//
// Created by MakotoAoyama on 8/18/17.
//
import Foundation
import ReactiveSwift
import Result
@maoyama
maoyama / gist:4231890
Created December 7, 2012 08:50
blocklink.js
//指定した要素内のリンクを取得して、要素全体をクリック可能にする。
$(function(){
$('.blocklink a').each(function(){
var href = $(this).attr('href');
var target = $(this).attr('target');
$(this).parent().click(function() {
if(target){
window.open(href,'_blank');
}else{
document.location = href;