- Scott Chacon on the Interwebs(リンク切れ)
- Scott Chacon on the Interwebs
- GitHub Flow - The best way to use Git and GitHub
31 Aug 2011
| -server | |
| -Xms2048m | |
| -Xmx2048m | |
| -XX:NewSize=512m | |
| -XX:MaxNewSize=512m | |
| -XX:PermSize=512m | |
| -XX:MaxPermSize=512m | |
| -XX:+UseParNewGC | |
| -XX:ParallelGCThreads=4 | |
| -XX:MaxTenuringThreshold=1 |
@see http://l-w-i.net/t/memcached/command_001.txt
$ memcached-tool localhost dump
You could have postgre installed on localhost with password (or without user or password seted after instalation) but if we are developing we really don't need password, so configuring postgre server without password for all your rails project is usefull.
| using UnityEngine; | |
| using System.Collections; | |
| public class MapUtils { | |
| static float GOOGLEOFFSET = 268435456f; | |
| static float GOOGLEOFFSET_RADIUS = 85445659.44705395f;//GOOGLEOFFSET / Mathf.PI; | |
| static float MATHPI_180 = Mathf.PI/180f; | |
| static private float preLonToX1 = GOOGLEOFFSET_RADIUS * (Mathf.PI/180f); |
2013 Minori Yamashita ympby@gmail.com
-- ここにあなたの名前を追記 --
| def insert(item, parent, comment) | |
| cid = @redis.incr 'comments_counter' | |
| parent_path = @redis.zrangebyscore("asc:#{item}:#{parent}", "0", "+inf", with_scores: true) if parent | |
| parent_path ||= [] | |
| @redis.multi do |multi| | |
| multi.set "comments:#{cid}", { | |
| data: comment, | |
| item: item, | |
| date: Time.now, |
| /* | |
| * Copyright 2014 Julian Shen | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |