This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var MAX_DEPTH = 3; | |
var work = []; // reusable stack | |
var seen = []; // "seen hash" | |
var run = 0; | |
var findPath = function (source, target, u2f, visitor) { // u2f = user to friend | |
source = Graph.userToIndex(source); | |
target = Graph.userToIndex(target); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var MAX_DEPTH = 3; | |
var findPath = function (source, target, u2f, visitor) { // u2f = user to friend | |
source = Graph.userToIndex(source); | |
target = Graph.userToIndex(target); | |
var dist = [] | |
var prev = [] | |
var queue = [] | |
var seen = [] | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var sys = require('sys'), | |
http = require('http'), | |
url = require('url'), | |
Dirty = require('./dirty'); | |
var files = {}; | |
exports.connect = function (port) { | |
http.createServer(function (req, res) { | |
var url = url.parse(req.url); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Module("gc.srv.bo.customer", function (m) { | |
Class("Address", { | |
isa: gc.srv.bo.BusinessObject, | |
does: gc.srv.bo.GenericDecorator, | |
has: { | |
obj: { | |
is: "rw" | |
} | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Module("gc.srv.bo.customer", function (m) { | |
Class("Address", { | |
isa: gc.srv.bo.BusinessObject, | |
does: gc.srv.bo.GenericDecorator, | |
validations: { | |
firstName: { | |
simple: ["required"] | |
}, | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var MAX_DEPTH = 3; | |
var work = []; // reusable stack | |
var seen = []; // "seen hash" | |
var run = 0; | |
var findPath = function (source, target, u2f, visitor) { // u2f = user to friend | |
source = Graph.userToIndex(source); | |
target = Graph.userToIndex(target); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fullreset = (function () { | |
$(function () { | |
var iframe = document.createElement("iframe"); | |
$("body").append(iframe); | |
var doc = iframe.contentDocument; | |
var win = iframe.contentWindow; | |
doc.open(); | |
var html = "<!DOCTYPE html>\n"+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<title>Hidden Scroll</title> | |
<meta charset="utf-8" /> | |
</head> | |
<body> | |
<div style="width:570px; height:170px;overflow:hidden;"> | |
<div style="width:600px; height:200px; overflow: auto"> | |
<img src="http://www.party-lichteffekte.de/images/detail-photos/2079/jb-systems-lounge-laser-4.jpg" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
syscall::connect:entry | |
/execname == "Echofon"/ | |
{ | |
this->sock = (struct sockaddr_in *)copyin(arg1, arg2); | |
port = this->sock->sin_port; | |
ip = this->sock->sin_addr.s_addr; | |
printf("%s %d %d.%d.%d.%d\n", execname, port, (ip >> 0) & 0xff, (ip >> 8) & 0xff, (ip >> 16) & 0xff, (ip >> 24) & 0xff); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
streamie.plugins.add(function noRetweets (tweet) { | |
return !tweet.retweet | |
}) |
OlderNewer