Skip to content

Instantly share code, notes, and snippets.

View nicolas-raoul's full-sized avatar
🙂

Nicolas Raoul nicolas-raoul

🙂
View GitHub Profile
ja:
errors:
messages:
not_found: "は見つかりませんでした"
# not_found: "not found"
already_confirmed: "は既に登録済みです"
# already_confirmed: "was already confirmed"
not_locked: "は凍結されていません"
# not_locked: "was not locked"
@yehara
yehara / MessageStartClient.java
Created September 28, 2011 03:14
Questetra BPM Suite のメッセージ開始イベントを起動するサンプルコード(Java)
package com.questetra;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.List;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.NameValuePair;
@hecomi
hecomi / str2yomi.cpp
Created February 7, 2012 14:43
文章をローマ字読みに変換
#include <iostream>
#include <string>
#include <map>
#include <vector>
#include <boost/shared_ptr.hpp>
#include <boost/spirit/include/qi.hpp>
#include <boost/regex.hpp>
#include <boost/range/adaptor/transformed.hpp>
#include <unicode/translit.h>
#include <mecab.h>
@martinlau
martinlau / SiteCreator.java
Last active May 23, 2017 08:02
Sample code to create a site in liferay (don't do this)
public class SiteCreator {
public static void createGroup() throws Exception {
// Don't do this!
long groupId = CounterLocalServiceUtil.increment(Group.class.getName());
Group group = GroupLocalServiceUtil.createGroup(groupId);
group.setName("Test Site");
@jshaw
jshaw / byobuCommands
Last active November 14, 2024 05:38
Byobu Commands
Byobu Commands
==============
byobu Screen manager
Level 0 Commands (Quick Start)
------------------------------
<F2> Create a new window
@IzzySoft
IzzySoft / ASE AutoReview DefaultComments
Last active October 14, 2017 09:49
Default comments for Android.SE to be used with @Benjol's SE-AutoReviewComments
###[Q]App recommendation
Please note that recommendations like *Is there an app for X* are off-topic here (see [What topics can I ask about here?](/help/on-topic) for details). For where your question might fit better, you might want to look into [Where can I ask questions that aren't Android Enthusiast questions?](//android.meta.stackexchange.com/q/371/16575) and [Where to ask for app recommendations?](//android.meta.stackexchange.com/q/2060/16575).
###[Q]Low question quality
We will need much more information to give good recommendations here. Please [edit] your question and include at least: The device you're using, Android version it is running. Also check and update the tags you've used to match your issue.
###[Q]Development question
This site is for *users* of Android, which means that questions about development/programming are off-topic here (see the [What topics can I ask about here?](/help/on-topic)). Development questions are on-topic on our sister site [Stack Overflow](//stackoverflow.com/questi
@jpotts
jpotts / addCategory.groovy
Created April 22, 2014 22:44
Add a category to a document in Alfresco using CMIS 1.1 and cmis:item support
def addCategory(documentPath, categoryName) {
println("Adding '" + categoryName + "' to the document at " + documentPath)
rs = session.query("select alfcmis:nodeRef from cm:category where cmis:name = '" + categoryName + "'", false)
if (rs.getTotalNumItems() == 0) {
println("Couldn't find category with name: " + categoryName)
return
}
catId = rs.getAt(0).getPropertyValueById("alfcmis:nodeRef")
@baturin
baturin / gist:4eda907d3b7dbc9d02c8
Created February 1, 2015 18:50
osm wikovoyage poi
--- /tmp/eB8iAd_AmenityType.java 2015-02-02 00:49:26.055866038 +0600
+++ OsmAnd-java/src/net/osmand/data/AmenityType.java 2015-01-15 22:40:04.441862245 +0600
@@ -46,10 +46,11 @@
public static AmenityType NATURAL = reg("natural", "natural"); // [TAG] natural places, peaks, caves, trees,... //$NON-NLS-1$ //$NON-NLS-2$
public static AmenityType LANDUSE = reg("landuse", "landuse"); // [TAG] landuse //$NON-NLS-1$ //$NON-NLS-2$
public static AmenityType MILITARY = reg("military", "military"); // [TAG] military //$NON-NLS-1$ //$NON-NLS-2$
public static AmenityType OSMWIKI = reg("osmwiki", "osmwiki"); //$NON-NLS-1$
+ public static AmenityType WIKIVOYAGE = reg("wikivoyage", "wikivoyage"); //$NON-NLS-1$
public static AmenityType USER_DEFINED = reg("user_defined", "user_defined"); //$NON-NLS-1$
@PkmX
PkmX / nexus5.xml
Created May 25, 2015 03:48
Nexus 5 Lens Calibration
<lensdatabase version="1">
<camera>
<maker>LGE</maker>
<model>Nexus 5</model>
<mount>lgeNexus5</mount>
<cropfactor>7.61</cropfactor>
</camera>
<lens>
<maker>LGE</maker>
@cb372
cb372 / query.json
Created March 9, 2016 18:40
Using the Elasticsearch scroll API
{
"sort": ["_doc"],
"size": 100,
"query": {
"bool": {
"must": {
"match_all": {}
},
"filter": {
...