Skip to content

Instantly share code, notes, and snippets.

Hyphenator.js says:
An Error occurred:
QuotaExceededError: DOM Exception 22
---
layout: default
---
{% assign index = true %}
{% for post in paginator.posts %}
{% assign content = post.content %}
<article class="post">{% include article.html %}</article>
{% endfor %}
<nav id="pagenavi">
[local :~]$ gem install review
Fetching: review-1.5.0.gem (100%)
Successfully installed review-1.5.0
1 gem installed
Installing ri documentation for review-1.5.0...
Installing RDoc documentation for review-1.5.0...
[local :~]$ gem install md2review
Fetching: redcarpet-3.2.3.gem (100%)
Building native extensions. This could take a while...
$ gem install anemone [40/62]
Fetching: mini_portile-0.6.2.gem (100%)
Successfully installed mini_portile-0.6.2
Fetching: nokogiri-1.6.6.2.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing anemone:
ERROR: Failed to build gem native extension.
/usr/local/Cellar/ruby/2.1.2_2/bin/ruby extconf.rb
checking if the C compiler accepts ... yes
$ python []
Python 2.7.8 (default, Aug 24 2014, 21:25:57)
[GCC 4.2.1 Compatible Apple LLVM 5.1 (clang-503.0.40)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import calendar
>>> print calendar.month(2015, 3)
March 2015
Mo Tu We Th Fr Sa Su
1
@kamatari
kamatari / filemtime_error.php
Last active August 29, 2015 14:14
codeigniter template error of application/third_party/smarty/libraries/sysplugins/smarty_resource.php
// http://php.net/manual/ja/function.filemtime.php
//$compiled->timestamp = @filemtime($compiled->filepath);
$compiled->timestamp = exec ('stat -c %Y '. escapeshellarg ($compiled->filepath));
//ERROR - 2015-02-02 16:00:30 --> Severity: Warning --> filemtime(): stat failed for application/views/templates_c/xxxxxxxx.file.index.tpl.php /home/kamatari/web/xxxx/application/third_party/smarty/libraries/sysplugins/smarty_resource.php 744
test_list = [(1,1),(1,2),(1,3),(1,4),(1,5)]
for coordinate in test_list:
for c_point in test_list:
print 'compare_point ' + str(c_point)
test_list.remove(c_point)
print test_list
# output
'''
compare_point (1, 1)
@kamatari
kamatari / install.sh
Created December 4, 2014 06:56
install the_silver_searcher
$ apt-get install -y automake pkg-config libpcre3-dev zlib1g-dev liblzma-dev
$ git clone https://github.com/ggreer/the_silver_searcher.git
$ cd the_silver_searcher
$ ./build.sh
$ sudo make install
#coding:utf-8
import random
seq = (True, False)
print random.choice(seq)
<script type="text/javascript">
$(document).ready(function(){
var loaded_items = 0;
$(".loadmore_button").click(function(){
loaded_items = $(".app_list").length;
$.get('/index.php/app/loadmore/'+loaded_items, function(data){
$('.app_list').append(data);
});
})
})