Skip to content

Instantly share code, notes, and snippets.

View HAKASHUN's full-sized avatar
🍊
みかん食べてる

HAKASHUN HAKASHUN

🍊
みかん食べてる
View GitHub Profile
@yoshimin
yoshimin / gist:858d14751fc1c00807d2
Created August 10, 2014 17:06
NSAttributedStringを使ってリンク文字を作る
#import "YMNViewController.h"
NSString *const Text = @"The iOS Developer Program provides a complete and integrated process for developing and distributing iOS apps on the App Store. Learn more";
NSString *const LinkText = @"Learn more";
@interface YMNViewController ()
@property (nonatomic, strong) UITextView *textView;
@property (nonatomic, strong) UITapGestureRecognizer *tapGesture;
@kyohei8
kyohei8 / browserify.coffee
Last active June 25, 2017 01:26
gulp with browserify/watchify multiple file compile task
gulp = require 'gulp'
browserify = require 'browserify'
watchify = require 'watchify'
source = require 'vinyl-source-stream'
colors = require 'colors'
files = [
{
@jtrussell
jtrussell / index.html
Last active August 12, 2019 15:05
jsbin - AngularJS, basic template
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Angular JS</title>
</head>
<body ng-app="jsbin">
<div ng-controller="DemoCtrl as demo">
<h1>Hello {{demo.name}}</h1>
</div>
@gimenete
gimenete / gist:53704124583b5df3b407
Last active July 31, 2020 16:20
Animated rootViewController transition
// put this in your AppDelegate
- (void)changeRootViewController:(UIViewController*)viewController {
if (!self.window.rootViewController) {
self.window.rootViewController = viewController;
return;
}
UIView *snapShot = [self.window snapshotViewAfterScreenUpdates:YES];
[viewController.view addSubview:snapShot];
self.window.rootViewController = viewController;
@magicznyleszek
magicznyleszek / javascript-vs-jquery.md
Last active November 30, 2021 17:50
Vanilla JavaScript

Vanilla JavaScript

Some vanilla equivalents to jQuery methods.

DOM selectors

jQuery:

@Sigmus
Sigmus / gulpfile.js
Last active November 15, 2017 11:55
gulpfile.js with browserify, reactify, watchify and gulp-notify.
var source = require('vinyl-source-stream');
var gulp = require('gulp');
var gutil = require('gulp-util');
var browserify = require('browserify');
var reactify = require('reactify');
var watchify = require('watchify');
var notify = require("gulp-notify");
var scriptsDir = './scripts';
var buildDir = './build';

問題

wiki はストックで blog はフロー、という考えで

  • 某ツールはストック (※)
  • Qiita Team はフロー

みたいな感じで皆捉えているけども、よく考えるとなぜ Qiita Team はフロー、と当然ように納得してしまっているのか。思考停止しているのではないかということを今少し思った。

仮に自分が同じようなものを作るとしても、一つのツールでフローとストックを両方面倒みれる道具にするには、ここを掘り下げて考えきれないといけない。

@rhyzx
rhyzx / paginate.go.html
Last active October 28, 2017 05:54
Paginate logic
{{ $page := 10 }}
{{ $count := 20 }}
{{ $url := "/users?page=%v" }}
<ul class="pagination" role="navigation" aria-label="Pagination">
{{ if gt $page 1 }}
<li class="pagination-previous"><a href="{{ printf $url 1 }}" aria-label="Previous page"></a></li>
{{ else }}
<li class="pagination-previous disabled"></li>
{{ end }}
@jashenson
jashenson / JSTableWithFixedHeaderViewController.m
Created November 27, 2013 23:39
Custom fixed UITableView header
// Key sections of code for this implementation are placed below
@interface JSTableWithFixedHeaderViewController ()
@property (strong, nonatomic) UIView *fixedHeaderView;
@end
@implementation JSTableWithFixedHeaderViewController
@shaps80
shaps80 / UINavigationController-Gesture.m
Last active September 23, 2020 08:35
Custom UINavigationController back button item, without losing iOS 7 swipe back gesture.
navigationController
.interactivePopGestureRecognizer
.delegate = (id<UIGestureRecognizerDelegate>)navigationController;