Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am ghillairet on github.
  • I am ghillairet (https://keybase.io/ghillairet) on keybase.
  • I have a public key ASDdB90bLN5FjIOJ0C_VkJlme-NpYr-YwutAjzv-y6zlEAo

To claim this, I am signing this object:

@ghillairet
ghillairet / category.xml
Created March 23, 2018 18:07
emfjson-p2-build
<?xml version="1.0" encoding="UTF-8"?>
<site>
<bundle id="org.emfjson.jackson" version="0.0.0">
<category name="org.emfjson"/>
</bundle>
<bundle id="org.emfjson.jackson.source" version="0.0.0">
<category name="org.emfjson.sdk"/>
</bundle>
<bundle id="com.fasterxml.jackson.core.jackson-annotations" version="0.0.0">
<category name="com.fasterxml.jackson"/>
@ghillairet
ghillairet / server.java
Created November 3, 2014 17:17
cdo-server
package cdo.server;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import org.eclipse.emf.cdo.server.CDOServerUtil;
import org.eclipse.emf.cdo.server.IRepository;
import org.eclipse.emf.cdo.server.IStore;
import org.eclipse.emf.cdo.server.db.CDODBUtil;
@ghillairet
ghillairet / userContent.css
Last active August 29, 2015 14:04
[Firefox] Hide search box in newTab page
@-moz-document url(about:newtab)
{
#newtab-search-container,
#newtab-search-logo,
#newtab-margin-top { display:none !important; }
}
@ghillairet
ghillairet / setup.java
Last active August 29, 2015 14:01
EMFJSON Usage
ResourceSet resourceSet = new ResourceSetImpl();
Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put("json", new JsResourceFactoryImpl());
//
// Then create an object and add it to a resource.
// Give the resource a URI that will be path to the resulting json file.
//
Resource resource = resourceSet.createResource(URI.createURI("model.json"));
Map<String, Object> options = new HashMap<String, Object>();
@ghillairet
ghillairet / App.gwt.xml
Last active August 29, 2015 14:01
gef3-draw2d for gwt basic example
<?xml version="1.0" encoding="UTF-8"?>
<module rename-to="app">
<inherits name="com.google.gwt.user.User" />
<inherits name="org.eclipse.gef.Gef" />
<entry-point class='app.App'/>
<source path="" />
<!-- Super Dev Mode -->
let g:neocomplcache_disable_auto_complete = 1
inoremap <expr><TAB> pumvisible() ? "\<C-n>" : <SID>check_back_space() ? "\<TAB>" : "\<C-x>\<C-u>"
function! s:check_back_space()"{{{
let col = col('.') - 1
return !col || getline('.')[col - 1] =~ '\s'
endfunction"}}
@ghillairet
ghillairet / eclipse.ini
Created January 21, 2014 20:08
eclipse.ini
-startup
../../../plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
-vm
/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/bin/java
--launcher.library
../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.200.v20130807-1835
-product
org.eclipse.epp.package.standard.product
--launcher.defaultAction
openFile
var SampleDiagram = Ds.Diagram.extend({
el: 'canvas'
});
var Circle = Ds.Shape.extend({
figure: {
type: 'circle',
r: 30,
fill: 'red',
stroke: 'rgb(120, 120, 200)',
package com.xtextatl.example;
import java.io.IOException;
import java.io.InputStream;
import java.util.Collections;
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.emf.common.util.URI;
import org.eclipse.emf.ecore.resource.Resource;
import org.eclipse.m2m.atl.core.ATLCoreException;