Skip to content

Instantly share code, notes, and snippets.

#define BOOST_THREAD_PROVIDES_FUTURE
#include <boost/thread.hpp>
#include <boost/thread/future.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/exception_ptr.hpp>
#include <iostream>
template <typename T>
class deferred
{
style -name liberator-bottombar-fix chrome://* <<EOM
#liberator-statusline,
#liberator-customize-toolbar {
-moz-box-align: center !important;
-moz-box-pack: center !important;
-moz-appearance: none !important;
border: none !important;
}
#liberator-bottombar toolbarbutton,
#liberator-bottombar toolbaritem,
#!/usr/bin/env ruby
# -*- encoding: utf-8 -*-
filename = ARGV[1] || 'yuiyuinikki_kaomoji.csv'
yomi = ARGV[2] || 'ゆい'
open 'yuiyui.txt', 'w' do |output|
open filename do |input|
input.readlines.each do |s|
row = s.split(',').map { |s| s.strip }
ゆい (*-v・) 顔文字
ゆい (∩^ω^∩) 顔文字
ゆい (○>ω<○) 顔文字
ゆい (´ω`) 顔文字
ゆい (-∀-) 顔文字
ゆい (´`) 顔文字
ゆい (´Д`) 顔文字
ゆい (^ω^) 顔文字
ゆい (*-∀-) 顔文字
ゆい (´-ω-`) 顔文字
#include <future>
#include <memory>
#include <thread>
#include <chrono>
#include <iostream>
namespace miu {
template <typename Derived>
class deferrable
#include <future>
#include <memory>
#include <thread>
#include <chrono>
#include <iostream>
namespace miu {
template <typename Derived>
class deferrable
def default_headers
{
:accept => '*/*',
:accept_language => 'ja,en-US;q=0.8,en;q=0.6',
:user_agent => 'Mozilla/4.0 (compatible; MSIE 10.0; Windows NT 6.2; Trident/6.0)',
:cache_control => 'no-cache',
}
end
# coding: utf-8
require 'nokogiri'
require 'cgi'
class GoogleAnswer
include Donkun::Plugin
set :help, <<-EOS
age|birthday <query>
指定した人物の生年月日を表示します
born <query>
CREATE TABLE `inbox_mails` (
`user_id` int(11) NOT NULL,
`mail_id` binary(16) NOT NULL,
`modified_seqno` int(11),
`modified_time` double,
`visibility` tinyint(4) NOT NULL,
`timestamp` double NOT NULL,
`year` smallint(6) NOT NULL,
`source_uuid` binary(16) NOT NULL,
`source_metadata` blob NOT NULL,
#include <future>
#include <memory>
#include <iostream>
#include <boost/lexical_cast.hpp>
template <typename T>
class deferred
{
public:
typedef deferred deferred_type;