Skip to content

Instantly share code, notes, and snippets.

View AndreaCrotti's full-sized avatar

Andrea Crotti AndreaCrotti

View GitHub Profile
Es war Acht Uhr und der Wecker hat geklingelt bei Hosni.
Bereit für einen neuen Tag ist Hosni aufgestanden und hat gefrühstück
Danach hat er angefangen die Fenster zu putzen mit einer Leiter
Die Aufgabe war sehr einfach, aber der Leiter ist gefährlich, und herr Hosni hat gefallen.
Später er hat den Krankenwagen angerufen und sie haben ihn in die Klinik gebracht.
Debugger entered--Lisp error: (void-function -mode)
-mode()
funcall(-mode)
(progn (insert body) (goto-char (point-min)) (funcall (intern ...)) (setq index (point)) (while (and ...) (save-match-data ...) (save-match-data ...) (save-match-data ...) (goto-char ...) (nb-add ...) (goto-char ...) (setq index ...) (nb-add ...)) (nb-add (buffer-substring index ...)))
(unwind-protect (progn (insert body) (goto-char ...) (funcall ...) (setq index ...) (while ... ... ... ... ... ... ... ... ...) (nb-add ...)) (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))
(save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn ... ... ... ... ... ...) (and ... ...)))
(with-current-buffer temp-buffer (unwind-protect (progn ... ... ... ... ... ...) (and ... ...)))
(let ((temp-buffer ...)) (with-current-buffer temp-buffer (unwind-protect ... ...)))
(with-temp-buffer (insert body) (goto-char (point-min)) (funcall (intern ...)) (setq index (point)) (while (and ...) (save-match-data ...) (save-match-da

To try it out:

  • Create a file “base.el” with something like: (setq base “~/your/base/path/”)
  • Lauch it with something like /path/to/your/emacs -q –load=”orgloader.el”
  • Make sure that you (or create an empty one) the file, “custom.el” That file will be managed automatically by the customization framework if you wish to use it.

    Be aware that you might need Emacs 23 for some of the features.

#include <Timer.h>
#include "Blink.h"
/**
* Configuration for the first task.
* Node number 0 of the network select a random led
* and broadcast it to the whole network.
* The other nodes accept the command, make sure they only receive once
* and set the led also.
*
#!/usr/bin/env python
from tinyos.message import MoteIF
from TOSSIM import *
import sys
from SerialMsg import SerialMsg
# # add another class for more direct input sending
class Communicator(object):
""" Sending messages directly to the motes """
#!/usr/bin/env python
from tinyos.message import MoteIF
from TOSSIM import *
from SerialMsg import SerialMsg
# # add another class for more direct input sending
class Communicator(object):
""" Sending messages directly to the motes """
def __init__(self, port):
#!/usr/bin/env python
"""
TODO: instead of just printing to debug can I get and parse the output from the program?
"""
import sys
import time
import random
@Override
public boolean equals(Object o) {
if (o instanceof PrologTerm) {
PrologTerm t = (PrologTerm) o;
return this.equals(t);
} else {
System.out.println("Strange");
return false;
}
}
from sqlalchemy import Column, Integer, String, ForeignKey
from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import backref, mapper, relation, sessionmaker
Base = declarative_base()
########################################################################
class User(Base):
""""""
#include "routing.h"
// initialize the routing structure to do it directly from here
int routing_init(struct config *c, char *tun_name) {
FILE *fd;
char buf[256];
my_short_addr = ntohs(__my_address.s6_addr16[7]);
strncpy(proxy_dev, c->proxy_dev, IFNAMSIZ);
strncpy(tun_dev, tun_name, IFNAMSIZ);