code
stringlengths
1
2.01M
repo_name
stringlengths
3
62
path
stringlengths
1
267
language
stringclasses
231 values
license
stringclasses
13 values
size
int64
1
2.01M
// var layer = require( "../layer" ); // var timeline =require( "../timeline" ); // var text, fps = "fps: "; // exports.set = function(){ // text = layer.createText( "default", fps + "0", 4, 470 ).attr( "fill", "#ccc" ); // }; // exports.update = function(){ // text.attr( "text", fps + ( timeline.getFPS() >> 0 ) )...
zzy-code-test
html5/fruitninja/scripts/object/fps.js
JavaScript
gpl2
327
var layer = require( "../layer" ); var tween = require( "../lib/tween" ); var timeline = require( "../timeline" ); var message = require( "../message" ); var state = require( "../state" ); var exponential = tween.exponential.co; /** * "game-over"模块 */ exports.anims = []; exports.set = function(){ this.image = la...
zzy-code-test
html5/fruitninja/scripts/object/game-over.js
JavaScript
gpl2
1,333
var rotate = require( "../factory/rotate" ); var tween = require( "../lib/tween" ); exports = rotate.create("images/new-game.png", 244, 231, 195, 195, 1e-5, tween.exponential.co, 500);
zzy-code-test
html5/fruitninja/scripts/object/new-game.js
JavaScript
gpl2
185
var layer = require( "../layer" ); var tween = require( "../lib/tween" ); var timeline = require( "../timeline" ); var Ucren = require( "../lib/ucren" ); var message = require( "../message" ); var anim = tween.exponential.co; var back = tween.back.co; /** * */ var o1, o2, o3, animLength = 500; var conf1 = { src:...
zzy-code-test
html5/fruitninja/scripts/object/lose.js
JavaScript
gpl2
4,220
var displacement = require( "../factory/displacement" ); var tween = require( "../lib/tween" ); exports = displacement.create("images/logo.png", 288, 135, 17, -182, 17, 1, tween.exponential.co, 1e3);
zzy-code-test
html5/fruitninja/scripts/object/logo.js
JavaScript
gpl2
200
var layer = require( "../layer" ); var x = 16, y = 0; var texts = []; exports.set = function(){ }; exports.clear = function(){ for(var i = 0, l = texts.length; i < l; i ++) texts[i].remove(); texts.length = y = 0; }; exports.log = function(text){ y += 20; texts.push( layer.createText( "default",...
zzy-code-test
html5/fruitninja/scripts/object/console.js
JavaScript
gpl2
339
var layer = require( "../layer" ); var tween = require( "../lib/tween" ); var timeline = require( "../timeline" ); var Ucren = require( "../lib/ucren" ); var image; var cycleTime = 300; var sx = 129, sy = 328, ex = 170, ey = 221, sw = 0, sh = 0, ew = 70, eh = 42, dy = 8; var showAnim = tween.exponential.co; var jump...
zzy-code-test
html5/fruitninja/scripts/object/new.js
JavaScript
gpl2
1,857
/** * this file was compiled by jsbuild 0.9.6 * @date Mon, 16 Jul 2012 18:46:47 UTC * @author dron * @site http://ucren.com */ void function(global){ var mapping = {}, cache = {}; global.startModule = function(m){ require(m).start(); }; global.define = function(id, func){ mapping[id] = func; }; global....
zzy-code-test
html5/fruitninja/scripts/all.js
JavaScript
gpl2
186,995
var Ucren = require( "lib/ucren" ); var knife = require( "object/knife" ); var message = require( "message" ); var state = require( "state" ); var canvasLeft, canvasTop; canvasLeft = canvasTop = 0; exports.init = function(){ this.fixCanvasPos(); this.installDragger(); this.installClicker(); }; exports.installDra...
zzy-code-test
html5/fruitninja/scripts/control.js
JavaScript
gpl2
1,147
var fruit = require( "factory/fruit" ); var Ucren = require( "lib/ucren" ); var fruits = fruit.getFruitInView(); /** * 碰撞检测 */ exports.check = function( knife ){ var ret = [], index = 0; fruits.forEach(function( fruit ){ var ck = lineInEllipse( knife.slice( 0, 2 ), knife.slice( 2, 4 ), ...
zzy-code-test
html5/fruitninja/scripts/collide.js
JavaScript
gpl2
2,104
/** * game logic */ var timeline = require( "timeline" ); var Ucren = require( "lib/ucren" ); var sound = require( "lib/sound" ); var fruit = require( "factory/fruit" ); var score = require( "object/score" ); var message = require( "message" ); var state = require( "state" ); var lose = require( "object/lose" ); var ...
zzy-code-test
html5/fruitninja/scripts/game.js
JavaScript
gpl2
3,708
var Ucren = require( "lib/ucren" ); var sound = require( "lib/sound" ); var fruit = require( "factory/fruit" ); var flash = require( "object/flash" ); var state = require( "state" ); var message = require( "message" ); // the fixed elements var background = require( "object/background" ); var fps = require( "object/f...
zzy-code-test
html5/fruitninja/scripts/sence.js
JavaScript
gpl2
4,850
/** * a simple message manager * @author dron * @date 2012-06-27 */ var Ucren = require( "lib/ucren" ); /** * send a message * @param {Any} message,message... message contents * @param {String} to message address */ exports.postMessage = function( message/*, message, message... */, to ){ var messages...
zzy-code-test
html5/fruitninja/scripts/message.js
JavaScript
gpl2
905
{include ../../../system/scripts/libs/buzz.js}
zzy-code-test
html5/fruitninja/scripts/lib/buzz.js
JavaScript
gpl2
46
exports.exponential = function(){}; exports.exponential.co = function(index, offset, target, framesNum){ return (index == framesNum) ? offset + target : target * (-Math.pow(2, -10 * index / framesNum) + 1) + offset; }; // exports.exponential.ci = function(index, offset, target, framesNum){ return (index == 0) ? offset ...
zzy-code-test
html5/fruitninja/scripts/lib/tween.js
JavaScript
gpl2
2,096
/** * 简易声效控制 */ /** * 使用方法: * * var sound = require( "sound/main" ); * * var snd = sound.create("sounds/myfile"); * snd.play(); */ var buzz = require( "buzz" ); var supported = buzz.isSupported(); var config = { formats: [ "ogg", "mp3" ], preload: true, autoload: true, loop: false }; function Cl...
zzy-code-test
html5/fruitninja/scripts/lib/sound.js
JavaScript
gpl2
852
{include ../../../system/scripts/libs/ucren.js}
zzy-code-test
html5/fruitninja/scripts/lib/ucren.js
JavaScript
gpl2
47
{include ../../../system/scripts/libs/raphael-1.5.2.js}
zzy-code-test
html5/fruitninja/scripts/lib/raphael.js
JavaScript
gpl2
55
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="description" content="A simple HTML5 Template"> <meta name="author" content="dron"> <meta name="viewport" content="width=device-width, height=device-height, user-scalable=no, initial-scale=1.0, maximum-scale=1.0"> <meta name="apple-mobile-web-a...
zzy-code-test
html5/fruitninja/index.html
HTML
gpl2
1,421
{include ../../system/css/reset.css} {include ../../system/css/common.css} html, body{ width: 100%; height: 100%; background: #484848; } body{ position: relative; } em{ display: none; } #extra, #view{ position: absolute; left: 50%; top: 50%; width: 640px; height: 480px; margin: -280px auto auto -320px; ...
zzy-code-test
html5/fruitninja/images/index.css
CSS
gpl2
1,068
*{ margin:0; padding:0; } body { font:14px/1.3 Arial,sans-serif; } header { background-color:#212121; box-shadow: 0 -1px 2px #111111; color:#fff; display:block; height:70px; position:relative; width:100%; z-index:100; } header h2{ font-size:22px; font-weight:normal; left:50%; margin-...
zzy-code-test
html5/css3-gear/css/layout.css
CSS
gpl2
4,015
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8" /> <title>CSS3 Animated Gears</title> <link href="css/layout.css" rel="stylesheet" type="text/css" /> </head> <body> <header> <h2>CSS3 Animated Gears</h2> <a href="http://www.html...
zzy-code-test
html5/css3-gear/index.html
HTML
gpl2
811
#!/bin/bash # Tetris Game # 10.21.2003 xhchen<xhchen@winbond.com.tw> #颜色定义 cRed=1 cGreen=2 cYellow=3 cBlue=4 cFuchsia=5 cCyan=6 cWhite=7 colorTable=( $cRed $cGreen $cYellow $cBlue $cFuchsia $cCyan $cWhite ) #位置和大小 iLeft=3 iTop=2 ((iTrayLeft = iLeft + 2)) ((iTrayTop = iTop + 1)) ((iTrayWidth = 10)) ((iTrayHe...
zzy-code-test
bash/tetris/tetris.sh
Shell
gpl2
13,753
<!DOCTYPE html> <html> <head> <title>Binary to Hexadecimal and Hexadecimal to Binary Conversion Practice</title> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script> <style type="text/css"> /* COLORS: GRAY: #5E6E7B; BLACK: #13253D; YELLOW: #FEFF9F; RED: #E...
zzilcs-csapp2
chapter_2/2_1/practice.html
HTML
mit
8,207
#include <stdio.h> int main ( ) { int x = -1; unsigned y = 0; if ( x > (int) y ) { printf( "x is greater than y" ); //this executes! } else { printf( "x is less than y" ); } printf( "\n" ); return 1; }
zzilcs-csapp2
chapter_2/2_20/test.c
C
mit
227
#include <stdio.h> typedef unsigned char *byte_pointer; void show_bytes( byte_pointer start, int len ) { int i; for ( i = 0; i < len; i++ ) { printf( " %.2x", start[ i ] ); } printf( "\n" ); } void show_int ( int x ) { show_bytes( ( byte_pointer ) &x, sizeof( int ) ); } void show_float ( float x ) { ...
zzilcs-csapp2
chapter_2/2_5/show_bytes.c
C
mit
777
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is distributed in the hope that it will be us...
zy901002-gpsr
scratch/scratch-simulator.cc
C++
gpl2
899
# topsort - dependency (topological) sorting and cycle finding functions # Copyright (C) 2007 RADLogic # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; # version 2.1 of the License. # ...
zy901002-gpsr
bindings/python/topsort.py
Python
gpl2
13,288
#! /usr/bin/env python import sys import os.path import pybindgen.settings from pybindgen.gccxmlparser import ModuleParser, PygenClassifier, PygenSection, WrapperWarning, find_declaration_from_name from pybindgen.typehandlers.codesink import FileCodeSink from pygccxml.declarations import templates from pygccxml.decla...
zy901002-gpsr
bindings/python/ns3modulescan-modular.py
Python
gpl2
11,846
LOCAL_MODULES = [ #'my_extra_api_definitions', ] import sys import os sys.path.insert(0, sys.argv[2]) from pybindgen import FileCodeSink, write_preamble from pybindgen.module import MultiSectionFactory import pybindgen.settings pybindgen.settings.deprecated_virtuals = False from ns3modulegen_generated i...
zy901002-gpsr
bindings/python/ns3modulegen.py
Python
gpl2
6,413
from pybindgen import Module, FileCodeSink, write_preamble, param, retval def register_types(module): module.add_class('MyClass') def register_methods(root_module): MyClass = root_module['MyClass'] MyClass.add_constructor([], visibility='public') MyClass.add_constructor([param('double', 's'), para...
zy901002-gpsr
bindings/python/my_extra_api_definitions.py
Python
gpl2
490
import warnings import sys import os import pybindgen.settings from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers from pybindgen.module import MultiSectionFactory import ns3modulegen_core_customizations pybindgen.settings.wrapper_registry = pybindgen.settings.StdMapWrapperRegistry cl...
zy901002-gpsr
bindings/python/ns3modulegen-modular.py
Python
gpl2
3,971
# Copyright (c) 2007 RADLogic # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribut...
zy901002-gpsr
bindings/python/rad_util.py
Python
gpl2
26,013
#! /usr/bin/env python import sys import os.path import pybindgen.settings from pybindgen.gccxmlparser import ModuleParser, PygenClassifier, PygenSection, WrapperWarning from pybindgen.typehandlers.codesink import FileCodeSink from pygccxml.declarations import templates from pygccxml.declarations.class_declaration im...
zy901002-gpsr
bindings/python/ns3modulescan.py
Python
gpl2
13,937
from _ns3 import * import atexit atexit.register(Simulator.Destroy) del atexit
zy901002-gpsr
bindings/python/ns3__init__.py
Python
gpl2
82
import re from pybindgen.typehandlers import base as typehandlers from pybindgen import ReturnValue, Parameter from pybindgen.cppmethod import CustomCppMethodWrapper, CustomCppConstructorWrapper from pybindgen.typehandlers.codesink import MemoryCodeSink from pybindgen.typehandlers import ctypeparser from pybindgen imp...
zy901002-gpsr
bindings/python/ns3modulegen_core_customizations.py
Python
gpl2
19,290
#include "ns3module.h" #include "ns3/ref-count-base.h" namespace ns3{ void PythonCompleteConstruct (Ptr<Object> object, TypeId typeId, const AttributeList &attributes) { object->SetTypeId (typeId); object->Object::Construct (attributes); } } class PythonEventImpl : public ns3::EventImpl { private: PyObje...
zy901002-gpsr
bindings/python/ns3module_helpers.cc
C++
gpl2
10,406
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- import types import re import os import subprocess import shutil import sys import Task import Options import Configure import TaskGen import Logs import Build import Utils from waflib.Errors import WafError ## https://launchpad.net/...
zy901002-gpsr
bindings/python/wscript
Python
gpl2
18,718
#! /usr/bin/env python # These methods are used by test.py and waf to look for and read the # .ns3rc configuration file, which is used to specify the modules that # should be enabled import os import sys def get_list_from_file(file_path, list_name): '''Looks for a Python list called list_name in the file specifi...
zy901002-gpsr
utils.py
Python
gpl2
3,892
#! /usr/bin/env python # encoding: utf-8 """ Waf 1.6 Try to detect if the project directory was relocated, and if it was, change the node representing the project directory. Just call: waf configure build Note that if the project directory name changes, the signatures for the tasks using files in that directory wi...
zy901002-gpsr
waf-tools/relocation.py
Python
gpl2
2,282
#!/usr/bin/env python # encoding: utf-8 # Thomas Nagy, 2007-2010 (ita) # Gustavo Carneiro (gjc), 2007 # # NS-3 Note: this python tool was added only for including a bug fix: # http://code.google.com/p/waf/issues/detail?id=1045 # Once waf 1.6.8 comes out and ns-3 upgrades to it, this copy of the python tool can be re...
zy901002-gpsr
waf-tools/python.py
Python
gpl2
16,228
# -*- mode: python; encoding: utf-8 -*- # Gustavo Carneiro (gjamc) 2008 import Options import Configure import subprocess import config_c import sys def configure(conf): pkg_config = conf.find_program('pkg-config', var='PKG_CONFIG') if not pkg_config: return @Configure.conf def pkg_check_modules(conf, uselib_name,...
zy901002-gpsr
waf-tools/pkgconfig.py
Python
gpl2
2,015
import Logs import Options import Utils class CompilerTraits(object): def get_warnings_flags(self, level): """get_warnings_flags(level) -> list of cflags""" raise NotImplementedError def get_optimization_flags(self, level): """get_optimization_flags(level) -> list of cflags""" raise NotImplementedError d...
zy901002-gpsr
waf-tools/cflags.py
Python
gpl2
4,919
#!/usr/bin/env python # encoding: utf-8 # # partially based on boost.py written by Gernot Vormayr # written by Ruediger Sonderfeld <ruediger@c-plusplus.de>, 2008 # modified by Bjoern Michaelsen, 2008 # modified by Luca Fossati, 2008 # rewritten for waf 1.5.1, Thomas Nagy, 2008 # rewritten for waf 1.6.2, Sylvain...
zy901002-gpsr
waf-tools/boost.py
Python
gpl2
8,365
# Copyright (C) 2008 Gustavo J. A. M. Carneiro <gjcarneiro@gmail.com> # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. ...
zy901002-gpsr
waf-tools/shellcmd.py
Python
gpl2
12,146
#!/usr/bin/env python # encoding: utf-8 # Thomas Nagy, 2006-2010 (ita) """ This tool is totally deprecated Try using: .pc.in files for .pc files the feature intltool_in - see demos/intltool make-like rules """ import shutil, re, os from waflib import TaskGen, Node, Task, Utils, Build, Errors from waflib.TaskGen i...
zy901002-gpsr
waf-tools/misc.py
Python
gpl2
11,741
import TaskGen# import feature, taskgen_method, before_method, task_gen import Node, Task, Utils, Build import subprocess import Options import shellcmd #shellcmd.subprocess = pproc # the WAF version of the subprocess module is supposedly less buggy from Logs import debug, error shellcmd.debug = debug import Task i...
zy901002-gpsr
waf-tools/command.py
Python
gpl2
4,165
#! /usr/bin/env python ## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- # # Copyright (c) 2009 University of Washington # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free ...
zy901002-gpsr
test.py
Python
gpl2
69,157
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is distributed in the hope that it will be us...
zy901002-gpsr
examples/socket/socket-bound-static-routing.cc
C++
gpl2
8,596
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- def build(bld): obj = bld.create_ns3_program('socket-bound-static-routing', ['network', 'csma', 'point-to-point', 'internet']) obj.source = 'socket-bound-static-routing.cc' obj = bld.create_ns3_program('socket-bound-tcp-st...
zy901002-gpsr
examples/socket/wscript
Python
gpl2
440
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is distributed in the hope that it will be us...
zy901002-gpsr
examples/socket/socket-bound-tcp-static-routing.cc
C++
gpl2
9,532
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is distributed in the hope that it will be us...
zy901002-gpsr
examples/error-model/simple-error-model.cc
C++
gpl2
6,431
#! /usr/bin/env python ## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- # A list of C++ examples to run in order to ensure that they remain # buildable and runnable over time. Each tuple in the list contains # # (example_name, do_run, do_valgrind_run). # # See test.py for more i...
zy901002-gpsr
examples/error-model/examples-to-run.py
Python
gpl2
613
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- def build(bld): obj = bld.create_ns3_program('simple-error-model', ['point-to-point', 'internet', 'applications']) obj.source = 'simple-error-model.cc'
zy901002-gpsr
examples/error-model/wscript
Python
gpl2
245
# # * This program is free software; you can redistribute it and/or modify # * it under the terms of the GNU General Public License version 2 as # * published by the Free Software Foundation; # * # * This program is distributed in the hope that it will be useful, # * but WITHOUT ANY WARRANTY; without even the implied w...
zy901002-gpsr
examples/realtime/realtime-udp-echo.py
Python
gpl2
3,526
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is distributed in the hope that it will be us...
zy901002-gpsr
examples/realtime/realtime-udp-echo.cc
C++
gpl2
3,657
#! /usr/bin/env python ## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- # A list of C++ examples to run in order to ensure that they remain # buildable and runnable over time. Each tuple in the list contains # # (example_name, do_run, do_valgrind_run). # # See test.py for more i...
zy901002-gpsr
examples/realtime/examples-to-run.py
Python
gpl2
632
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- def build(bld): obj = bld.create_ns3_program('realtime-udp-echo', ['csma', 'internet']) obj.source = 'realtime-udp-echo.cc' bld.register_ns3_script('realtime-udp-echo.py', ['csma', 'internet', 'applications'])
zy901002-gpsr
examples/realtime/wscript
Python
gpl2
308
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2008-2009 Strasbourg University * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * Thi...
zy901002-gpsr
examples/ipv6/ping6.cc
C++
gpl2
3,535
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2009 Strasbourg University * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This pro...
zy901002-gpsr
examples/ipv6/icmpv6-redirect.cc
C++
gpl2
6,030
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2009 Strasbourg University * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This pro...
zy901002-gpsr
examples/ipv6/radvd.cc
C++
gpl2
5,578
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2008-2009 Strasbourg University * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * Thi...
zy901002-gpsr
examples/ipv6/fragmentation-ipv6.cc
C++
gpl2
5,127
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2009 Strasbourg University * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This pro...
zy901002-gpsr
examples/ipv6/radvd-two-prefix.cc
C++
gpl2
8,053
#! /usr/bin/env python ## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- # A list of C++ examples to run in order to ensure that they remain # buildable and runnable over time. Each tuple in the list contains # # (example_name, do_run, do_valgrind_run). # # See test.py for more i...
zy901002-gpsr
examples/ipv6/examples-to-run.py
Python
gpl2
753
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- def build(bld): obj = bld.create_ns3_program('icmpv6-redirect', ['csma', 'internet']) obj.source = 'icmpv6-redirect.cc' obj = bld.create_ns3_program('ping6', ['csma', 'internet']) obj.source = 'ping6.cc' obj =...
zy901002-gpsr
examples/ipv6/wscript
Python
gpl2
888
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2009 Strasbourg University * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This pro...
zy901002-gpsr
examples/ipv6/loose-routing-ipv6.cc
C++
gpl2
5,831
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2008 Louis Pasteur University / Telecom Bretagne * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foun...
zy901002-gpsr
examples/ipv6/test-ipv6.cc
C++
gpl2
2,238
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is distributed in the hope that it will be us...
zy901002-gpsr
examples/stats/wifi-example-apps.cc
C++
gpl2
8,321
set terminal postscript portrait enhanced lw 2 "Helvetica" 14 set size 1.0, 0.66 #------------------------------------------------------- set out "wifi-default.eps" #set title "Packet Loss Over Distance" set xlabel "Distance (m)" set xrange [0:200] set ylabel "% Packet Loss --- average of 5 trials per distance" set y...
zy901002-gpsr
examples/stats/wifi-example.gnuplot
Gnuplot
gpl2
393
#!/bin/sh DISTANCES="25 50 75 100 125 145 147 150 152 155 157 160 162 165 167 170 172 175 177 180" TRIALS="1 2 3 4 5" echo WiFi Experiment Example pCheck=`which sqlite3` if [ -z "$pCheck" ] then echo "ERROR: This script requires sqlite3 (wifi-example-sim does not)." exit 255 fi pCheck=`which gnuplot` if [ -z "$...
zy901002-gpsr
examples/stats/wifi-example-db.sh
Shell
gpl2
1,863
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is distributed in the hope that it will be us...
zy901002-gpsr
examples/stats/wifi-example-sim.cc
C++
gpl2
10,837
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is distributed in the hope that it will be us...
zy901002-gpsr
examples/stats/wifi-example-apps.h
C++
gpl2
3,304
#! /usr/bin/env python ## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- # A list of C++ examples to run in order to ensure that they remain # buildable and runnable over time. Each tuple in the list contains # # (example_name, do_run, do_valgrind_run). # # See test.py for more i...
zy901002-gpsr
examples/stats/examples-to-run.py
Python
gpl2
611
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- def build(bld): obj = bld.create_ns3_program('wifi-example-sim', ['stats', 'internet', 'mobility', 'wifi']) obj.source = ['wifi-example-sim.cc', 'wifi-example-apps.cc']
zy901002-gpsr
examples/stats/wscript
Python
gpl2
280
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is distributed in the hope that it will be us...
zy901002-gpsr
examples/routing/simple-alternate-routing.cc
C++
gpl2
5,833
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2008-2009 Strasbourg University * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * Thi...
zy901002-gpsr
examples/routing/simple-routing-ping6.cc
C++
gpl2
5,119
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is distributed in the hope that it will be us...
zy901002-gpsr
examples/routing/simple-global-routing.cc
C++
gpl2
5,950
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2011 University of Kansas * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This prog...
zy901002-gpsr
examples/routing/manet-routing-compare.cc
C++
gpl2
12,247
# # Copyright (c) 2008-2009 Strasbourg University # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation; # # This program is distributed in the hope that it will be useful, # but WITHOUT AN...
zy901002-gpsr
examples/routing/simple-routing-ping6.py
Python
gpl2
3,298
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is distributed in the hope that it will be us...
zy901002-gpsr
examples/routing/mixed-global-routing.cc
C++
gpl2
4,735
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is distributed in the hope that it will be us...
zy901002-gpsr
examples/routing/dynamic-global-routing.cc
C++
gpl2
9,035
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is distributed in the hope that it will be us...
zy901002-gpsr
examples/routing/static-routing-slash32.cc
C++
gpl2
5,062
#! /usr/bin/env python ## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- # A list of C++ examples to run in order to ensure that they remain # buildable and runnable over time. Each tuple in the list contains # # (example_name, do_run, do_valgrind_run). # # See test.py for more i...
zy901002-gpsr
examples/routing/examples-to-run.py
Python
gpl2
994
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is distributed in the hope that it will be us...
zy901002-gpsr
examples/routing/global-injection-slash32.cc
C++
gpl2
5,903
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- def build(bld): obj = bld.create_ns3_program('dynamic-global-routing', ['point-to-point', 'csma', 'internet']) obj.source = 'dynamic-global-routing.cc' obj = bld.create_ns3_program('static-...
zy901002-gpsr
examples/routing/wscript
Python
gpl2
1,803
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is distributed in the hope that it will be us...
zy901002-gpsr
examples/routing/global-routing-slash32.cc
C++
gpl2
4,582
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is distributed in the hope that it will be us...
zy901002-gpsr
examples/tutorial/sixth.cc
C++
gpl2
6,976
# /* # * This program is free software; you can redistribute it and/or modify # * it under the terms of the GNU General Public License version 2 as # * published by the Free Software Foundation; # * # * This program is distributed in the hope that it will be useful, # * but WITHOUT ANY WARRANTY; without even the ...
zy901002-gpsr
examples/tutorial/first.py
Python
gpl2
2,115
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is distributed in the hope that it will be us...
zy901002-gpsr
examples/tutorial/first.cc
C++
gpl2
2,272
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is distributed in the hope that it will be us...
zy901002-gpsr
examples/tutorial/third.cc
C++
gpl2
5,631
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is distributed in the hope that it will be us...
zy901002-gpsr
examples/tutorial/fifth.cc
C++
gpl2
6,490
#! /usr/bin/env python ## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- # A list of C++ examples to run in order to ensure that they remain # buildable and runnable over time. Each tuple in the list contains # # (example_name, do_run, do_valgrind_run). # # See test.py for more i...
zy901002-gpsr
examples/tutorial/examples-to-run.py
Python
gpl2
825
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- def build(bld): obj = bld.create_ns3_program('hello-simulator', ['core']) obj.source = 'hello-simulator.cc' obj = bld.create_ns3_program('first', ['core', 'point-to-point', 'internet', 'applications']) obj.sour...
zy901002-gpsr
examples/tutorial/wscript
Python
gpl2
1,042
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is distributed in the hope that it will be us...
zy901002-gpsr
examples/tutorial/fourth.cc
C++
gpl2
1,650
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is distributed in the hope that it will be us...
zy901002-gpsr
examples/tutorial/second.cc
C++
gpl2
3,580
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is distributed in the hope that it will be us...
zy901002-gpsr
examples/tutorial/hello-simulator.cc
C++
gpl2
894
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2007 INRIA * 2009,2010 Contributors * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Fo...
zy901002-gpsr
examples/mobility/ns2-mobility-trace.cc
C++
gpl2
5,621
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- def build(bld): obj = bld.create_ns3_program('ns2-mobility-trace', ['internet', 'mobility', 'wifi', 'mesh', 'applications']) obj.source = 'ns2-mobility-trace.cc'
zy901002-gpsr
examples/mobility/wscript
Python
gpl2
256
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is distributed in the hope that it will be us...
zy901002-gpsr
examples/udp/udp-echo.cc
C++
gpl2
4,032
#! /usr/bin/env python ## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- # A list of C++ examples to run in order to ensure that they remain # buildable and runnable over time. Each tuple in the list contains # # (example_name, do_run, do_valgrind_run). # # See test.py for more i...
zy901002-gpsr
examples/udp/examples-to-run.py
Python
gpl2
603