Skip to content

Instantly share code, notes, and snippets.

@teamon
teamon / gist:7678184
Last active December 29, 2015 13:39 — forked from bitrut/gist:7676303
db = {
person: {
save: function(obj){
if(obj.id){
return $http.post("/person", obj).then(function(res){
var data = angular.extend({}, obj); // create copy of `obj` + `id` field
data.id = res.data.id;
return data;
})
} else {
@teamon
teamon / Nav.scala
Created September 10, 2013 15:47 — forked from fayimora/Nav.scala
val api = new Namespace("api"){
val v1 = new Namespace("v1"){
GET on "/" to Application.index _
val todos = resources("todos", Todos)
val posts = resources("posts", Posts)
val comments = resources("comments", Comments)
}
val v1_1 = new Namespace("v1.1"){
GET on "/" to Application.index _
@teamon
teamon / .zshrc
Created July 4, 2013 14:27 — forked from anonymous/.zshrc
function loc {
s=$(git stash)
localeapp pull && git commit -am "Pulled new translations from localeapp"
if [ ! "$s" = "No local changes to save" ]; then git stash pop; fi
}
@teamon
teamon / gist:1839423
Created February 15, 2012 22:18 — forked from wesQ3/gist:1782417
POST /api/v1/projects.json
// POST http://staginginfo.marketmaker4.com/api/v1/projects.json
{
"project": {
"actor_uid": "7ajxdiGvTvZ8DJoT2uY4",
"list": {
"name": "Test 1329343404",
"companies": [
{
"contact_person": {
"email": "dellis@monachem.mc",
P5 EQU 0F8H
P7 EQU 0DBH
LJMP START
ORG 0100H
LCDstatus EQU 0FF2EH
LCDcontrol EQU 0FF2CH
LCDdataWR EQU 0FF2DH
LCDdataRD EQU 0FF2FH
@teamon
teamon / gist:666864
Created November 7, 2010 21:27 — forked from lopex/gist:666857
object cbfx2 {
trait X[K, L]
trait A[T] {
def foo[L](i: L)(implicit a: X[T, L]) = null
}
class B[T] extends A[T]
object B {
package neo4jtest
import org.neo4j.kernel._
import org.neo4j.graphdb._
import org.neo4j.graphdb.DynamicRelationshipType
import scala.collection.JavaConversions._ // 2010-07-24 00:28:55 - dmilith - required to do foreach on iterators f.e.
object Neo4j extends Neo4jWrapper {
com.db4o.ext.Db4oException: JDKField boolean:active
at com.db4o.reflect.jdk.JdkField.handleException(JdkField.java:82)
at com.db4o.reflect.jdk.JdkField.set(JdkField.java:64)
at com.db4o.internal.reflect.StrictFieldAccessor.set(StrictFieldAccessor.java:17)
at com.db4o.internal.FieldMetadata.set(FieldMetadata.java:848)
at com.db4o.internal.FieldMetadata.activate(FieldMetadata.java:648)
at com.db4o.internal.handlers.StandardReferenceTypeHandler$2.processAspect(StandardReferenceTypeHandler.java:92)
at com.db4o.internal.metadata.MarshallingInfoTraverseAspectCommand.processAspect(MarshallingInfoTraverseAspectCommand.java:52)
at com.db4o.internal.metadata.StandardAspectTraversalStrategy.traverseAllAspects(StandardAspectTraversalStrategy.java:24)
at com.db4o.internal.ClassMetadata.traverseAllAspects(ClassMetadata.java:2086)
1. W zakres miernictwa wchodzi:
a) weryfikacja koncepcji praw przyrody
b) analiza rozwoju techniki
c) technika porównywania wartości mierzonej ze wzorcem
d) wzorowanie się na zjawiskach naturalnych
Poprawna odpowiedź to: c
2. W pomiarach wykorzystuje się modele:
a) aparatury i funkcji matematycznych
b) badanych obiekt obiektów i mierników
Profiler Agent: JNI On Load Initializing...
Profiler Agent: JNI OnLoad Initialized succesfully
Profiler Agent: Waiting for connection on port 5140 (Protocol version: 8)
Profiler Agent: Established local connection with the tool
Profiler Agent: 250 classes cached.
Profiler Agent: 250 classes cached.
Assertion failed: (res == JVMTI_ERROR_NONE), function cache_loaded_classes, file ../src-jdk15/class_file_cache.c, line 119.