Skip to content

Instantly share code, notes, and snippets.

<h2>A Hello World post for <a href="https://github.com/moski/gist-Blogger">gist-Blogger</a></h2>
But it doesn't work for my firefox.<br />
<div class="gistLoad" data-id="4748908" id="gist-4748908">Loading ....</div>
<!-- Either here or in the blog template, unless it already has one -->
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js' type='text/javascript'/>
<script src="https://raw.github.com/moski/gist-Blogger/master/public/gistLoader.js" type="text/javascript"></script>
@nsuke
nsuke / .gvimrc
Last active August 12, 2018 05:32
colorscheme neverness
hi qffilename guifg=#ec8
hi qflinenr guifg=#bf9
hi qferror gui=bold guifg=#f62
hi qfwarning guifg=#fa1
"set guifont=Ubuntu\ Mono\ 11.7
set guifont=monospace\ 11.6
@nsuke
nsuke / memo.sh
Last active December 16, 2015 21:29
# zeromq
sed -i 's/libzmq_werror="yes"/libzmq_werror="no"/g' configure
CC=i686-w64-mingw32-gcc CXX=i686-w64-mingw32-g++ CXXFLAGS="-static-libstdc++" CPPFLAGS="-static-libgcc -march=corei7 -pipe" ./configure --build=x86_64-unknown-linux-gnu --host=i686-w64-mingw32 --prefix=$HOME/usr/i686-w64-mingw32
# configure gvim
./configure --enable-fail-if-missing --with-features=huge \
--enable-rubyinterp --enable-pythoninterp --enable-perlinterp \
--with-python-config-dir=/usr/lib/python2.7 \
--enable-xim --enable-multibyte --enable-fontset \
--enable-gui=gtk2 --enable-cscope
@nsuke
nsuke / tuple_hash.h
Created July 13, 2013 12:48
std::hash specialization for std::tuple from StackOverflow.com
#ifndef common_tuple_hash_h
#define common_tuple_hash_h
#include <tuple>
namespace std{
namespace
{
template <class t>
inline void hash_combine(std::size_t& seed, t const& v)
{
seed ^= hash<t>()(v) + 0x9e3779b9 + (seed<<6) + (seed>>2);
@nsuke
nsuke / init.el
Last active December 27, 2015 20:09
; cedet
(unless (featurep 'cedet)
(when (file-directory-p "~/.emacs.d/cedet")
(progn
(add-to-list 'load-path "~/.emacs.d/cedet")
(load-file "~/.emacs.d/cedet/cedet-devel-load.el"))))
(setq semantic-default-submodes
'(;; cache(?)
global-semanticdb-minor-mode
import QtQuick 2.2
import QtQuick.Controls 1.1
import QtQuick.Controls.Styles 1.1
ApplicationWindow {
visible: true
width: 1024
height: 768
title: qsTr("GRID")