Skip to content

Instantly share code, notes, and snippets.

@typista
typista / emoji.json
Last active August 29, 2015 14:20
iOS8.3 & Yosemiteの絵文字json【人種多様性サポート版】 ref: http://qiita.com/typista/items/e642b9f66c2200cbe76b
[{"shortcode":"grinning-face","unicode":"😀","chars":"😀","meta":["face","fitz-secondary","grin","person","person-android","person-apple"],"vs16":false,"skin":false,"missing":false},{"shortcode":"grinning-face-with-smiling-eyes","unicode":"😁","chars":"😁","meta":["eye","face","fitz-secondary","grin","person","person-android","person-apple","smile"],"vs16":false,"skin":false,"missing":false},{"shortcode":"face-with-tears-of-joy","unicode":"😂","chars":"😂","meta":["face","fitz-secondary","joy","person","person-android","person-apple","tear"],"vs16":false,"skin":false,"missing":false},{"shortcode":"smiling-face-with-open-mouth","unicode":"😃","chars":"😃","meta":["face","fitz-secondary","mouth","open","person","person-android","person-apple","smile"],"vs16":false,"skin":false,"missing":false},{"shortcode":"smiling-face-with-open-mouth-and-smiling-eyes","unicode":"😄","chars":"😄","meta":["eye","face","fitz-secondary","mouth","open","person","person-android","person-apple","smile"]
@typista
typista / XPath(JP)
Last active August 29, 2015 14:16
StackOverflow(JP&本家)のFAVをRSS化する方法 ref: http://qiita.com/typista/items/1ab1edde59d3792ad64e
//*[@id="user-tab-favorites"]//*[@class="user-questions"]///h3
@typista
typista / test-url.html
Last active August 29, 2015 14:08 — forked from arv/test-url.html
<!DOCTYPE html>
<script src="url.js"></script>
<script>
var url = new URL('http://www.example.com/a/b/c.html?p=q&r=s&p&p=t#hash');
for (var key in url) {
console.log(key, url[key]);
}
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
#!/usr/bin/php
<?php
switch($argc) {
case 1:
case 2:
echo "please input new site url and wp directory name!\n";
exit();
default:
$old_site = isset($argv[3]) ? $argv[3] : '';
$path = $argv[2];
/*
* Copyright 2014 Ramon de C Valle
*
* Copying and distribution of this file, with or without modification,
* are permitted in any medium without royalty provided the copyright
* notice and this notice are preserved. This file is offered as-is,
* without any warranty.
*/
#include <stdio.h>
// ==UserScript==
// @name getMemoryInfo
// @namespace http://efcl.info/
// @description メモリ情報をcontentスコープから取得できるように拡張
// @include main
// ==/UserScript==
var memoryInfo = {
init: function(event) {
let doc = event.originalTarget;
//alert(doc.defaultView.location.href);
<!doctype html>
<html>
<head>
<!-- Run in full-screen mode. -->
<meta name="apple-mobile-web-app-capable" content="yes">
<!-- Make the status bar black with white text. -->
<meta name="apple-mobile-web-app-status-bar-style" content="black">