This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ViewController.swift | |
import UIKit | |
import Alamofire | |
import Realm | |
class QiitaTag: RLMObject { | |
dynamic var id = "" | |
dynamic var iconUrl = "" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Cocoa Docs — Realm: a mobile database that replaces Core Data & SQLite</title> | |
<link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400,600,700,900,200italic,300italic,400italic,600italic,700italic,900italic' rel='stylesheet' type='text/css'> | |
<link href="/css/realm.css" rel="stylesheet" media="all"> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ViewController.m | |
#import "ViewController.h" | |
#import <Realm/Realm.h> | |
@interface QiitaTag : RLMObject | |
@property NSString *id; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ViewController.swift | |
import UIKit | |
import Alamofire | |
class ViewController: UIViewController { | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var select = window.getSelection().toString(); | |
var text = (select.length>0)? select: document.querySelector("span.gt-card-ttl-txt").innerText; | |
alert(text.textContent.toLowerCase().replace(" ","_","g")); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var select = window.getSelection().toString(); | |
var text = (select.length > 0)? select: document.querySelector("span.gt-card-ttl-txt").innerText; // Google Translate | |
var words = text.split(" "); | |
var methodName = ""; | |
for (var i = 0, l = words.length; i < l; i++) { | |
var word = words[i]; | |
if (word.length === 0) { | |
continue; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Gemfile b/Gemfile | |
index b2b133e..53a3988 100644 | |
--- a/Gemfile | |
+++ b/Gemfile | |
@@ -25,7 +25,6 @@ if adapters.any? | |
when 'mysql2' ; gem 'mysql2' | |
when 'mysql' ; gem 'mysql' | |
when /postgres/ ; gem 'pg' | |
- when /sqlite3/ ; gem 'sqlite3' | |
else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifdef DEBUG | |
#import "UIViewController+ClassNameOverlay.h" | |
#endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@interface ViewController () | |
@property (nonatomic, weak) IBOutlet UIButton *button; | |
@end | |
@implementation ViewController | |
- (void)viewDidLoad | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'logger' | |
require 'strscan' | |
require 'uri' | |
class PukipaParseError < StandardError; | |
end | |
class Pukipa |