This file contains 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
javascript:%3B%28function%28d%29%7Blet%20html%3Dd.querySelector%28%27html%27%29%3Blet%20head%3Dd.querySelector%28%27head%27%29%3Bif%28%21head%29%7Bhead%3Dd.createElement%28%27head%27%29%3Bhtml.appendChild%28head%29%3B%7D%0Afunction%20setMeta%28name%2Cvalue%29%7Blet%20meta0%3Dd.querySelector%28%27meta%5B%27+name+%27%5D%27%29%3Bif%28meta0%29%7Bmeta0.content%3Dvalue%3B%7Delse%7Bmeta0%3Dd.createElement%28%27meta%27%29%3Bmeta0.name%3Dname%3Bmeta0.content%3Dvalue%3Bhead.appendChild%28meta0%29%3B%7D%7D%0AsetMeta%28%27mobile-web-app-capable%27%2C%27yes%27%29%3BsetMeta%28%27apple-mobile-web-app-capable%27%2C%27yes%27%29%3BsetMeta%28%27apple-mobile-web-app-status-bar-style%27%2C%27black%27%29%3B%7D%29%28document%29%3B |
This file contains 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
;; -*- mode: emacs-lisp -*- | |
;; This file is loaded by Spacemacs at startup. | |
;; It must be stored in your home directory. | |
(defun dotspacemacs/layers () | |
"Configuration Layers declaration. | |
You should not put any user code in this function besides modifying the variable | |
values." | |
(setq-default | |
;; Base distribution to use. This is a layer contained in the directory |
This file contains 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
/* | |
1. Delete `main.storyboard` | |
2. Emptify `Main Interface` on the project's general page | |
3. Add below code inside `application:didFinishLaunchingWithOptions` | |
*/ | |
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { | |
// Override point for customization after application launch. | |
self.window = UIWindow(frame: UIScreen.main.bounds) | |
if let window = self.window { |
This file contains 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
javascript:;(function(d) {let html = d.querySelector('html');let head = d.querySelector('head');if (!head) {head = d.createElement('head');html.appendChild(head);}let meta1 = d.querySelector('meta[name=apple-mobile-web-app-capable]');if (meta1) {meta1.content = 'yes';} else {meta1 = d.createElement('meta');meta1.name = 'apple-mobile-web-app-capable';meta1.content = 'yes';head.appendChild(meta1);}let meta2 = d.querySelector('meta[name=apple-mobile-web-app-status-bar-style]');if (meta2) {meta2.content = 'black'; /* black-translucent, black, default */} else {meta2 = d.createElement('meta');meta2.name = 'apple-mobile-web-app-status-bar-style';meta2.content = 'black';head.appendChild(meta2);}})(document); |
This file contains 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains 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
<resources> | |
<!--fontawesome v4.7 http://fontawesome.io/--> | |
<string name="fa_500px"></string> | |
<string name="fa_address_book"></string> | |
<string name="fa_address_book_o"></string> | |
<string name="fa_address_card"></string> | |
<string name="fa_address_card_o"></string> | |
<string name="fa_adjust"></string> | |
<string name="fa_adn"></string> |
This file contains 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
import sys | |
import os | |
import datetime | |
import subprocess | |
from keyhac import * | |
def configure(keymap): |
This file contains 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
// | |
// UITextView+Ext.swift | |
// BTKeyboardInputTest | |
// | |
// Created by Shingo Fukuyama on 10/10/16. | |
// Copyright © 2016 Shingo Fukuyama. All rights reserved. | |
// | |
import UIKit |
This file contains 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
// ==UserScript== | |
// @name 0AutoPagerize SITEINFO | |
// @namespace http://ss-o.net/ | |
// @description oAutoPagerize SITEINFO | |
// @include http* | |
// @checkurl http://ss-o.net/userjs/0AutoPagerize.SITEINFO.user.js | |
// ==/UserScript== | |
(function(){ | |
if (this.chrome) { | |
window.addEventListener('ChromeAutoPagerizeInitialize',function(evt){ |
NewerOlder