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 |
|---|---|---|---|---|---|
/* $Id: testgetgateway.c,v 1.4 2008/07/02 22:33:06 nanard Exp $ */
/* libnatpmp
* Copyright (c) 2007, Thomas BERNARD <miniupnp@free.fr>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this p... | 118controlsman-testtest | TCMPortMapper/framework/libnatpmp/testgetgateway.c | C | mit | 1,382 |
/* $Id: natpmp.h,v 1.10 2008/07/02 22:33:06 nanard Exp $ */
/* libnatpmp
* Copyright (c) 2007-2008, Thomas BERNARD <miniupnp@free.fr>
* http://miniupnp.free.fr/libnatpmp.html
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that ... | 118controlsman-testtest | TCMPortMapper/framework/libnatpmp/natpmp.h | C | mit | 6,152 |
@echo Compile getgateway
gcc -c -Wall -Os -DWIN32 -DSTATICLIB -DENABLE_STRNATPMPERR getgateway.c
gcc -c -Wall -Os -DWIN32 -DSTATICLIB -DENABLE_STRNATPMPERR testgetgateway.c
gcc -o testgetgateway getgateway.o testgetgateway.o -lws2_32
@echo Compile natpmp:
gcc -c -Wall -Os -DWIN32 -DSTATICLIB -DENABLE_STRNATPMPERR getg... | 118controlsman-testtest | TCMPortMapper/framework/libnatpmp/build.bat | Batchfile | mit | 917 |
#ifndef __DECLSPEC_H__
#define __DECLSPEC_H__
#if defined(WIN32) && !defined(STATICLIB)
#ifdef NATPMP_EXPORTS
#define LIBSPEC __declspec(dllexport)
#else
#define LIBSPEC __declspec(dllimport)
#endif
#else
#define LIBSPEC
#endif
#endif
| 118controlsman-testtest | TCMPortMapper/framework/libnatpmp/declspec.h | C | mit | 246 |
/* $Id: getgateway.c,v 1.12 2008/10/06 10:04:16 nanard Exp $ */
/* libnatpmp
* Copyright (c) 2007-2008, Thomas BERNARD <miniupnp@free.fr>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this... | 118controlsman-testtest | TCMPortMapper/framework/libnatpmp/getgateway.c | C | mit | 12,668 |
//
// TCMNATPMPPortMapper.h
// Encapsulates libnatpmp, listens for router changes
//
// Copyright (c) 2007-2008 TheCodingMonkeys:
// Martin Pittenauer, Dominik Wagner, <http://codingmonkeys.de>
// Some rights reserved: <http://opensource.org/licenses/mit-license.php>
//
#import "TCMPortMapper.h"
#import "natpm... | 118controlsman-testtest | TCMPortMapper/framework/TCMNATPMPPortMapper.h | Objective-C | mit | 1,478 |
//
// TCMPortMapper.h
// Establishes port mapping via upnp or natpmp
//
// Copyright (c) 2007-2008 TheCodingMonkeys:
// Martin Pittenauer, Dominik Wagner, <http://codingmonkeys.de>
// Some rights reserved: <http://opensource.org/licenses/mit-license.php>
//
#import <Foundation/Foundation.h>
#import <errno.h>
#i... | 118controlsman-testtest | TCMPortMapper/framework/TCMPortMapper.h | Objective-C | mit | 4,697 |
#import "NSNotificationCenterThreadingAdditions.h"
#import <pthread.h>
@implementation NSNotificationCenter (NSNotificationCenterThreadingAdditions)
+ (void)_postNotification:(NSNotification *)aNotification {
[[self defaultCenter] postNotification:aNotification];
}
+ (void)_postNotificationViaDictionary:(NSDicti... | 118controlsman-testtest | TCMPortMapper/framework/NSNotificationCenterThreadingAdditions.m | Objective-C | mit | 1,570 |
#import "TCMUPNPPortMapper.h"
#import <SystemConfiguration/SystemConfiguration.h>
#import <SystemConfiguration/SCSchemaDefinitions.h>
#import "NSNotificationCenterThreadingAdditions.h"
#define PREFIX_MATCH_MIN_LENGTH 6
//static void PrintHeader(void)
// // Prints an explanation of the flag coding.
//{
// fprin... | 118controlsman-testtest | TCMPortMapper/framework/TCMUPNPPortMapper.m | Objective-C | mit | 27,709 |
#import "TCMNATPMPPortMapper.h"
#import "NSNotificationCenterThreadingAdditions.h"
#import "natpmp.h"
#import <netinet/in.h>
#import <netinet6/in6.h>
#import <net/if.h>
#import <arpa/inet.h>
#import <sys/socket.h>
NSString * const TCMNATPMPPortMapperDidFailNotification = @"TCMNATPMPPortMapperDidFailNotification";
NS... | 118controlsman-testtest | TCMPortMapper/framework/TCMNATPMPPortMapper.m | Objective-C | mit | 24,877 |
/*
* Written by Theo Hultberg (theo@iconara.net) 2004-03-09 with help from Boaz Stuller.
* This code is in the public domain, provided that this notice remains.
* Fixes and additions in Nov 2008 by Dominik Wagner
*/
#import "IXSCNotificationManager.h"
/*!
* @function _IXSCNotificationCallback
* @abstract... | 118controlsman-testtest | TCMPortMapper/framework/IXSCNotificationManager.m | Objective-C | mit | 1,929 |
#! /usr/bin/python
# $Id: testupnpigd.py,v 1.4 2008/10/11 10:27:20 nanard Exp $
# MiniUPnP project
# Author : Thomas Bernard
# This Sample code is public domain.
# website : http://miniupnp.tuxfamily.org/
# import the python miniupnpc module
import miniupnpc
import socket
import BaseHTTPServer
# function definition
d... | 118controlsman-testtest | TCMPortMapper/framework/miniupnpc/testupnpigd.py | Python | mit | 2,364 |
/* $Id: upnperrors.h,v 1.2 2008/07/02 23:31:15 nanard Exp $ */
/* (c) 2007 Thomas Bernard
* All rights reserved.
* MiniUPnP Project.
* http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
* This software is subjet to the conditions detailed in the
* provided LICENCE file. */
#ifndef __UPNPERRORS_H__
#define ... | 118controlsman-testtest | TCMPortMapper/framework/miniupnpc/upnperrors.h | C | mit | 591 |
# $Id: Makefile,v 1.48 2008/12/18 17:46:13 nanard Exp $
# MiniUPnP Project
# http://miniupnp.free.fr/
# (c) 2005-2007 Thomas Bernard
# to install use :
# $ PREFIX=/tmp/dummylocation make install
# or
# $ INSTALLPREFIX=/usr/local make install
# or
# make install (will go to /usr/bin, /usr/lib, etc...)
CC ?= gcc
#AR = g... | 118controlsman-testtest | TCMPortMapper/framework/miniupnpc/Makefile | Makefile | mit | 3,935 |
#! /usr/bin/python
# $Id: setup.py,v 1.3 2009/04/17 20:59:42 nanard Exp $
# the MiniUPnP Project (c) 2007 Thomas Bernard
# http://miniupnp.tuxfamily.org/ or http://miniupnp.free.fr/
#
# python script to build the miniupnpc module under unix
#
# replace libminiupnpc.a by libminiupnpc.so for shared library usage
from dis... | 118controlsman-testtest | TCMPortMapper/framework/miniupnpc/setup.py | Python | mit | 540 |
/* $Id: codelength.h,v 1.1 2008/10/06 22:04:06 nanard Exp $ */
/* Project : miniupnp
* Author : Thomas BERNARD
* copyright (c) 2005-2008 Thomas Bernard
* This software is subjet to the conditions detailed in the
* provided LICENCE file. */
#ifndef __CODELENGTH_H__
#define __CODELENGTH_H__
/* Encode length by using... | 118controlsman-testtest | TCMPortMapper/framework/miniupnpc/codelength.h | C | mit | 906 |
/* $Id: igd_desc_parse.c,v 1.8 2008/04/23 11:51:06 nanard Exp $ */
/* Project : miniupnp
* http://miniupnp.free.fr/
* Author : Thomas Bernard
* Copyright (c) 2005-2008 Thomas Bernard
* This software is subject to the conditions detailed in the
* LICENCE file provided in this distribution.
* */
#include "igd_desc_... | 118controlsman-testtest | TCMPortMapper/framework/miniupnpc/igd_desc_parse.c | C | mit | 4,194 |
#! /bin/sh
# $Id: updateminiupnpcstrings.sh,v 1.2 2009/06/04 09:13:53 nanard Exp $
FILE=miniupnpcstrings.h
# detecting the OS name and version
OS_NAME=`uname -s`
OS_VERSION=`uname -r`
if [ -f /etc/debian_version ]; then
OS_NAME=Debian
OS_VERSION=`cat /etc/debian_version`
fi
# use lsb_release (Linux Standard Base) w... | 118controlsman-testtest | TCMPortMapper/framework/miniupnpc/updateminiupnpcstrings.sh | Shell | mit | 894 |
/* $Id: upnpcommands.c,v 1.24 2009/04/17 21:21:19 nanard Exp $ */
/* Project : miniupnp
* Author : Thomas Bernard
* Copyright (c) 2005-2009 Thomas Bernard
* This software is subject to the conditions detailed in the
* LICENCE file provided in this distribution.
* */
#include <stdlib.h>
#include <stdio.h>
#include ... | 118controlsman-testtest | TCMPortMapper/framework/miniupnpc/upnpcommands.c | C | mit | 16,257 |
/* $Id: igd_desc_parse.h,v 1.6 2008/04/23 11:51:07 nanard Exp $ */
/* Project : miniupnp
* http://miniupnp.free.fr/
* Author : Thomas Bernard
* Copyright (c) 2005-2008 Thomas Bernard
* This software is subject to the conditions detailed in the
* LICENCE file provided in this distribution.
* */
#ifndef __IGD_DESC_... | 118controlsman-testtest | TCMPortMapper/framework/miniupnpc/igd_desc_parse.h | C | mit | 1,697 |
/* $Id: minisoap.h,v 1.3 2006/11/19 22:32:34 nanard Exp $ */
/* Project : miniupnp
* Author : Thomas Bernard
* Copyright (c) 2005 Thomas Bernard
* This software is subject to the conditions detailed in the
* LICENCE file provided in this distribution. */
#ifndef __MINISOAP_H__
#define __MINISOAP_H__
/*int httpWrit... | 118controlsman-testtest | TCMPortMapper/framework/miniupnpc/minisoap.h | C | mit | 476 |
/* $Id: miniupnpcstrings.h,v 1.3 2009/06/04 09:05:56 nanard Exp $ */
/* Project: miniupnp
* http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
* Author: Thomas Bernard
* Copyright (c) 2005-2009 Thomas Bernard
* This software is subjects to the conditions detailed
* in the LICENCE file provided within this ... | 118controlsman-testtest | TCMPortMapper/framework/miniupnpc/miniupnpcstrings.h | C | mit | 479 |
/* $Id: miniupnpc.h,v 1.18 2008/09/25 18:02:50 nanard Exp $ */
/* Project: miniupnp
* http://miniupnp.free.fr/
* Author: Thomas Bernard
* Copyright (c) 2005-2006 Thomas Bernard
* This software is subjects to the conditions detailed
* in the LICENCE file provided within this distribution */
#ifndef __MINIUPNPC_H__
... | 118controlsman-testtest | TCMPortMapper/framework/miniupnpc/miniupnpc.h | C | mit | 3,558 |
/* $Id: minixml.h,v 1.6 2006/11/30 11:47:21 nanard Exp $ */
/* minimal xml parser
*
* Project : miniupnp
* Website : http://miniupnp.free.fr/
* Author : Thomas Bernard
* Copyright (c) 2005 Thomas Bernard
* This software is subject to the conditions detailed in the
* LICENCE file provided in this distribution.
*... | 118controlsman-testtest | TCMPortMapper/framework/miniupnpc/minixml.h | C | mit | 1,169 |
/* $Id: testigddescparse.c,v 1.1 2008/04/23 11:53:45 nanard Exp $ */
/* Project : miniupnp
* http://miniupnp.free.fr/
* Author : Thomas Bernard
* Copyright (c) 2008 Thomas Bernard
* This software is subject to the conditions detailed in the
* LICENCE file provided in this distribution.
* */
#include <stdio.h>
#in... | 118controlsman-testtest | TCMPortMapper/framework/miniupnpc/testigddescparse.c | C | mit | 1,287 |
/* $Id: upnpreplyparse.c,v 1.10 2008/02/21 13:05:27 nanard Exp $ */
/* MiniUPnP project
* http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
* (c) 2006 Thomas Bernard
* This software is subject to the conditions detailed
* in the LICENCE file provided within the distribution */
#include <stdlib.h>
#includ... | 118controlsman-testtest | TCMPortMapper/framework/miniupnpc/upnpreplyparse.c | C | mit | 3,043 |
/* $Id: minissdpc.h,v 1.1 2007/08/31 15:15:33 nanard Exp $ */
/* Project: miniupnp
* http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
* Author: Thomas Bernard
* Copyright (c) 2005-2007 Thomas Bernard
* This software is subjects to the conditions detailed
* in the LICENCE file provided within this distrib... | 118controlsman-testtest | TCMPortMapper/framework/miniupnpc/minissdpc.h | C | mit | 476 |
/* $Id: miniupnpcmodule.c,v 1.13 2009/04/17 20:59:42 nanard Exp $*/
/* Project : miniupnp
* Author : Thomas BERNARD
* website : http://miniupnp.tuxfamily.org/
* copyright (c) 2007 Thomas Bernard
* This software is subjet to the conditions detailed in the
* provided LICENCE file. */
#include <Python.h>
#define STAT... | 118controlsman-testtest | TCMPortMapper/framework/miniupnpc/miniupnpcmodule.c | C | mit | 13,281 |
/* $Id: upnperrors.c,v 1.3 2008/04/27 17:21:51 nanard Exp $ */
/* Project : miniupnp
* Author : Thomas BERNARD
* copyright (c) 2007 Thomas Bernard
* All Right reserved.
* http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
* This software is subjet to the conditions detailed in the
* provided LICENCE file.... | 118controlsman-testtest | TCMPortMapper/framework/miniupnpc/upnperrors.c | C | mit | 1,348 |
@mingw32-make -f Makefile.mingw %1
@if errorlevel 1 goto end
@strip upnpc-static.exe
@upx --best upnpc-static.exe
@strip upnpc-shared.exe
@upx --best upnpc-shared.exe
:end
| 118controlsman-testtest | TCMPortMapper/framework/miniupnpc/mingw32make.bat | Batchfile | mit | 172 |
/* $Id: upnpcommands.h,v 1.17 2009/04/17 21:21:19 nanard Exp $ */
/* Miniupnp project : http://miniupnp.free.fr/
* Author : Thomas Bernard
* Copyright (c) 2005-2008 Thomas Bernard
* This software is subject to the conditions detailed in the
* LICENCE file provided within this distribution */
#ifndef __UPNPCOMMANDS_... | 118controlsman-testtest | TCMPortMapper/framework/miniupnpc/upnpcommands.h | C | mit | 6,894 |
/* $Id: upnpc.c,v 1.65 2008/10/14 18:05:27 nanard Exp $ */
/* Project : miniupnp
* Author : Thomas Bernard
* Copyright (c) 2005-2008 Thomas Bernard
* This software is subject to the conditions detailed in the
* LICENCE file provided in this distribution.
* */
#include <stdio.h>
#include <stdlib.h>
#include <string... | 118controlsman-testtest | TCMPortMapper/framework/miniupnpc/upnpc.c | C | mit | 11,073 |
#! /usr/bin/python
# $Id: setupmingw32.py,v 1.1 2007/06/12 23:04:13 nanard Exp $
# the MiniUPnP Project (c) 2007 Thomas Bernard
# http://miniupnp.tuxfamily.org/ or http://miniupnp.free.fr/
#
# python script to build the miniupnpc module under unix
#
from distutils.core import setup, Extension
setup(name="miniupnpc", ve... | 118controlsman-testtest | TCMPortMapper/framework/miniupnpc/setupmingw32.py | Python | mit | 524 |
/* $Id: testupnpreplyparse.c,v 1.2 2008/02/21 13:05:27 nanard Exp $ */
/* MiniUPnP project
* http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
* (c) 2006-2007 Thomas Bernard
* This software is subject to the conditions detailed
* in the LICENCE file provided within the distribution */
#include <stdio.h>
#i... | 118controlsman-testtest | TCMPortMapper/framework/miniupnpc/testupnpreplyparse.c | C | mit | 956 |
/* $OpenBSD: queue.h,v 1.31 2005/11/25 08:06:25 otto Exp $ */
/* $NetBSD: queue.h,v 1.11 1996/05/16 05:17:14 mycroft Exp $ */
/*
* Copyright (c) 1991, 1993
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, ar... | 118controlsman-testtest | TCMPortMapper/framework/miniupnpc/bsdqueue.h | C | mit | 18,109 |
\" $Id: miniupnpc.3,v 1.2 2008/10/07 13:51:55 nanard Exp $
.TH miniupnpc 3
.SH NAME
miniupnpc \- UPnP client library
.SH SYNOPSIS
.SH DESCRIPTION
The miniupnpc library implement the UPnP protocol defined
to dialog with Internet Gateway Devices. It also has
the ability to use data gathered by minissdpd(1) about
UPnP dev... | 118controlsman-testtest | TCMPortMapper/framework/miniupnpc/man3/miniupnpc.3 | Roff Manpage | mit | 2,734 |
#ifndef __DECLSPEC_H__
#define __DECLSPEC_H__
#if defined(WIN32) && !defined(STATICLIB)
#ifdef MINIUPNP_EXPORTS
#define LIBSPEC __declspec(dllexport)
#else
#define LIBSPEC __declspec(dllimport)
#endif
#else
#define LIBSPEC
#endif
#endif
| 118controlsman-testtest | TCMPortMapper/framework/miniupnpc/declspec.h | C | mit | 248 |
/* $Id: miniwget.c,v 1.22 2009/02/28 10:36:35 nanard Exp $ */
/* Project : miniupnp
* Author : Thomas Bernard
* Copyright (c) 2005 Thomas Bernard
* This software is subject to the conditions detailed in the
* LICENCE file provided in this distribution.
* */
#include <stdio.h>
#include <stdlib.h>
#include <string.h... | 118controlsman-testtest | TCMPortMapper/framework/miniupnpc/miniwget.c | C | mit | 5,323 |
/* $Id: minixml.c,v 1.6 2007/05/15 18:14:08 nanard Exp $ */
/* minixml.c : the minimum size a xml parser can be ! */
/* Project : miniupnp
* webpage: http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
* Author : Thomas Bernard
Copyright (c) 2005-2007, Thomas BERNARD
All rights reserved.
Redistribution and ... | 118controlsman-testtest | TCMPortMapper/framework/miniupnpc/minixml.c | C | mit | 4,830 |
/* $Id: upnpreplyparse.h,v 1.8 2008/02/21 13:05:27 nanard Exp $ */
/* MiniUPnP project
* http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
* (c) 2006 Thomas Bernard
* This software is subject to the conditions detailed
* in the LICENCE file provided within the distribution */
#ifndef __UPNPREPLYPARSE_H__... | 118controlsman-testtest | TCMPortMapper/framework/miniupnpc/upnpreplyparse.h | C | mit | 1,372 |
#! /usr/bin/python
# MiniUPnP project
# Author : Thomas Bernard
# This Sample code is public domain.
# website : http://miniupnp.tuxfamily.org/
# import the python miniupnpc module
import miniupnpc
import sys
# create the object
u = miniupnpc.UPnP()
print 'inital(default) values :'
print ' discoverdelay', u.discoverd... | 118controlsman-testtest | TCMPortMapper/framework/miniupnpc/pymoduletest.py | Python | mit | 1,377 |
/* $Id: minissdpc.c,v 1.7 2008/12/18 17:45:48 nanard Exp $ */
/* Project : miniupnp
* Author : Thomas BERNARD
* copyright (c) 2005-2008 Thomas Bernard
* This software is subjet to the conditions detailed in the
* provided LICENCE file. */
/*#include <syslog.h>*/
#include <stdio.h>
#include <string.h>
#include <stdl... | 118controlsman-testtest | TCMPortMapper/framework/miniupnpc/minissdpc.c | C | mit | 2,578 |
/* $Id: minisoap.c,v 1.16 2008/10/11 16:39:29 nanard Exp $ */
/* Project : miniupnp
* Author : Thomas Bernard
* Copyright (c) 2005 Thomas Bernard
* This software is subject to the conditions detailed in the
* LICENCE file provided in this distribution.
*
* Minimal SOAP implementation for UPnP protocol.
*/
#inclu... | 118controlsman-testtest | TCMPortMapper/framework/miniupnpc/minisoap.c | C | mit | 3,141 |
/* $Id: miniupnpc.c,v 1.57 2008/12/18 17:46:36 nanard Exp $ */
/* Project : miniupnp
* Author : Thomas BERNARD
* copyright (c) 2005-2007 Thomas Bernard
* This software is subjet to the conditions detailed in the
* provided LICENCE file. */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef WIN32
/* W... | 118controlsman-testtest | TCMPortMapper/framework/miniupnpc/miniupnpc.c | C | mit | 18,098 |
/* $Id: minixmlvalid.c,v 1.2 2006/11/30 11:31:55 nanard Exp $ */
/* MiniUPnP Project
* http://miniupnp.tuxfamily.org/ or http://miniupnp.free.fr/
* minixmlvalid.c :
* validation program for the minixml parser
*
* (c) 2006 Thomas Bernard */
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "minix... | 118controlsman-testtest | TCMPortMapper/framework/miniupnpc/minixmlvalid.c | C | mit | 3,289 |
/* $Id: miniwget.h,v 1.5 2007/01/29 20:27:23 nanard Exp $ */
/* Project : miniupnp
* Author : Thomas Bernard
* Copyright (c) 2005 Thomas Bernard
* This software is subject to the conditions detailed in the
* LICENCE file provided in this distribution.
* */
#ifndef __MINIWGET_H__
#define __MINIWGET_H__
#include "d... | 118controlsman-testtest | TCMPortMapper/framework/miniupnpc/miniwget.h | C | mit | 589 |
/* $Id: testminixml.c,v 1.6 2006/11/19 22:32:35 nanard Exp $
* testminixml.c
* test program for the "minixml" functions.
* Author : Thomas Bernard.
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "minixml.h"
#include "igd_desc_parse.h"
#ifdef WIN32
#define NO_BZERO
#endif
#ifdef NO_BZERO
#d... | 118controlsman-testtest | TCMPortMapper/framework/miniupnpc/testminixml.c | C | mit | 1,758 |
//
// NSNotificationCenterThreadingAdditions
// Enable NSNotification being sent from threads
//
// Copyright (c) 2007-2008 TheCodingMonkeys:
// Martin Pittenauer, Dominik Wagner, <http://codingmonkeys.de>
// Some rights reserved: <http://opensource.org/licenses/mit-license.php>
//
@interface NSNotificationCent... | 118controlsman-testtest | TCMPortMapper/framework/NSNotificationCenterThreadingAdditions.h | Objective-C | mit | 523 |
#import "TCMPortMapper.h"
#import "TCMNATPMPPortMapper.h"
#import "TCMUPNPPortMapper.h"
#import "IXSCNotificationManager.h"
#import "NSNotificationCenterThreadingAdditions.h"
#import <SystemConfiguration/SystemConfiguration.h>
#import <SystemConfiguration/SCSchemaDefinitions.h>
#import <sys/sysctl.h>
#import <netinet... | 118controlsman-testtest | TCMPortMapper/framework/TCMPortMapper.m | Objective-C | mit | 30,721 |
//
// TCMUPNPPortMapper.h
// Encapsulates miniupnp framework
//
// Copyright (c) 2007-2008 TheCodingMonkeys:
// Martin Pittenauer, Dominik Wagner, <http://codingmonkeys.de>
// Some rights reserved: <http://opensource.org/licenses/mit-license.php>
//
#import "TCMPortMapper.h"
#import "TCMNATPMPPortMapper.h"
#inc... | 118controlsman-testtest | TCMPortMapper/framework/TCMUPNPPortMapper.h | Objective-C | mit | 1,168 |
-- cabal install WAVE
-- runghc proof.hs
--
-- The input file has to be called sound.wav in the current dir.
--
-- Haskell proof-of-concept of stages 1/2/3 (see ALGORITHM).
module Main where
import Control.Monad
import Data.WAVE
import Data.Int
import Data.List (group, sort)
-- Take a flat stream and break it into c... | 05eugene-cw0102030405060708090 | proof.hs | Haskell | bsd | 7,195 |
// A basic package to decode Wave files.
package audio
import (
"rog-go.googlecode.com/hg/exp/abc"
"os"
"fmt"
"io"
"encoding/binary"
"reflect"
"strings"
)
func init() {
Register("readwav", wInput, map[string]abc.Socket {
"out": abc.Socket{SamplesT, abc.Male},
"1": abc.Socket{abc.StringT, abc.Female},
... | 05eugene-cw0102030405060708090 | wave-decoder.go | Go | bsd | 10,331 |
/*
Go program to decode an audio stream of Morse code into a stream of ASCII.
See the ALGORITHM file for a description of what's going on, and
'proof.hs' as the original proof-of-concept implementation of this
algorithm in Haskell.
*/
package main
import (
"fmt"
"math"
"rand"
"sort"
)
type token int
... | 05eugene-cw0102030405060708090 | cw-decode.go | Go | bsd | 5,695 |
all:
8g cw-decode.go
8l -o cw-decode cw-decode.8
clean:
rm -f *.8 cw-decode
| 05eugene-cw0102030405060708090 | Makefile | Makefile | bsd | 83 |
/*
* Theme Name: 017leena
* Description: 梨衣名
* Author: Stock Style
**/
@charset "utf-8";
/*------------------------------トップページ */
#main.top_main {
width:520px;
height:490px;
margin:0;
padding:0;
position:relative;
background:url(./images/front/img_top.jpg) no-repeat 0 0 #000;
}
.top_img {
width:152px;
he... | 017leena | style.css | CSS | oos | 5,938 |
<?php get_header(); ?>
<a name="pagetop" id="pagetop"></a>
<div id="wrapper">
<!-- コンテンツ START -->
<div id="main" class="top_main clearfix">
<!-- コンテンツ START -->
<div class="top_img">
<h1><img src="<?php bloginfo('template_url'); ?>/images/front/img_h1.png" alt="梨衣名" width="152" height="80" title="梨... | 017leena | custom_topic.php | PHP | oos | 913 |
<?php
define("PACKAGE_ROOT", dirname(__FILE__));
include_once PACKAGE_ROOT.'/conf/facebook_const.php';
include_once PACKAGE_ROOT.'/lib/mastercontrol.php';
//+++++++++++++++++++++++++++++++++++++++++
//カスタムヘッダー
include_once 'lib/func_header.php';
include_once 'lib/func_footer.php';
include_once 'lib/layout/func.php'... | 017leena | functions.php | PHP | oos | 17,660 |
jQuery(document).ready(function(){
var navTag = '#gnav_' + jQuery('h2.menu_image').html() + ' a';
jQuery(navTag).attr("class", "current");
});
| 017leena | js/navi_current.js | JavaScript | oos | 145 |
// -----------------------------------------------------------------------------------
//
// Lightbox v2.04
// by Lokesh Dhakar - http://www.lokeshdhakar.com
// Last Modification: 2/9/08
//
// For more information, visit:
// http://lokeshdhakar.com/projects/lightbox2/
//
// Licensed under the Creative Commons Attributi... | 017leena | js/lightbox-web.js | JavaScript | oos | 18,389 |
// script.aculo.us scriptaculous.js v1.9.0, Thu Dec 23 16:54:48 -0500 2010
// Copyright (c) 2005-2010 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"),... | 017leena | js/scriptaculous.js | JavaScript | oos | 2,931 |
// script.aculo.us builder.js v1.9.0, Thu Dec 23 16:54:48 -0500 2010
// Copyright (c) 2005-2010 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
//
// script.aculo.us is freely distributable under the terms of an MIT-style license.
// For details, see the script.aculo.us web site: http://script.aculo.us/
va... | 017leena | js/builder.js | JavaScript | oos | 4,744 |
// -----------------------------------------------------------------------------------
//
// Lightbox v2.05
// by Lokesh Dhakar - http://www.lokeshdhakar.com
// Last Modification: 3/18/11
//
// For more information, visit:
// http://lokeshdhakar.com/projects/lightbox2/
//
// Licensed under the Creative Commons Attribut... | 017leena | js/lightbox.js | JavaScript | oos | 18,593 |
<?php
$template_type = get_post_type(get_the_ID());
include 'custom_' . $template_type . '.php';
?>
| 017leena | single.php | PHP | oos | 107 |
<?php
/*
Template Name: Event
*/
?>
<?php get_header(); ?>
<a name="pagetop" id="pagetop"></a>
<div id="wrapper">
<div id="google_translate_element" style="float:right"></div>
<!-- ヘッダー START -->
<div id="header">
<h1><a href="<?php bloginfo('url'); ?>"><img src="<?php bloginfo('template_url'); ?>/images/front/i... | 017leena | custom_event.php | PHP | oos | 7,410 |
<?php
/*
Template Name: Blog
*/
get_header();
?>
<div id="wrapper">
<a name="pagetop" id="pagetop"></a>
<?php
run_layout();
?>
<?php get_footer(); ?>
| 017leena | custom_blog.php | PHP | oos | 155 |
@charset "utf-8";
/*------------------------------Base Setting */
h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dt, dd, li, table, th, td, form, select, option, address, pre, strong, em, p {
padding: 0;
margin: 0;
}
body{
padding: 0;
margin: 0;
width:100%;
font-size:13px;
font-family:Verdana,Arial,sans-serif;
line-... | 017leena | base.css | CSS | oos | 1,445 |
<?php
/*
Template Name: osusume
*/
get_header();
$template_url = get_bloginfo('template_url');
$site_name = get_bloginfo('name');
$is_single = false;
print <<<META_HEADER
<script type="text/javascript" src="$template_url/js/prototype.js"></script>
<script type="text/javascript" src="$template_url/js/scriptaculou... | 017leena | custom_osusume.php | PHP | oos | 6,608 |
<?php get_header(); ?>
<?php get_footer(); ?>
| 017leena | index.php | PHP | oos | 46 |
<?php get_header(); ?>
<?php get_footer(); ?>
| 017leena | page.php | PHP | oos | 47 |
<?php
/*
Template Name: Info
*/
get_header();
?>
<div id="wrapper">
<a name="pagetop" id="pagetop"></a>
<?php
run_layout();
?>
<?php get_footer(); ?>
| 017leena | custom_info.php | PHP | oos | 155 |
<!-- Pagetop START -->
<div class="pagetop">
<p><a href="#pagetop">▲Page Topに戻る</a></p>
</div>
<!-- //Pagetop END// -->
<!-- フッター START -->
<div id="footer">
<p>Copyright© LesPros Entertainment Co., Ltd. All rights reserved.</p>
</div>
<!-- //フッター END// -->
<div>
... | 017leena | footer.php | PHP | oos | 383 |
<?php
$q = get_posts('post_type=mastercontrol&posts_per_page=1');
$qq = get_post_custom_values('appid', $q[0]->ID);
if($qq[0] == ""){$APP_ID = "";}else{$APP_ID = $qq[0];}
define("APP_ID", $APP_ID);
$qq = get_post_custom_values('appsecret', $q[0]->ID);
if($qq[0] == ""){$SECRET_KEY = "";}else{$SECRET_KEY = $qq... | 017leena | conf/facebook_const.php | PHP | oos | 1,146 |
<?php
loadIframeFB();
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#" xml:lang="ja" lang="ja">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
... | 017leena | header.php | PHP | oos | 870 |
<?php
/*
Template Name: Profile
*/
?>
<?php get_header(); ?>
<a name="pagetop" id="pagetop"></a>
<div id="wrapper">
<div id="google_translate_element" style="float:right"></div>
<!-- ヘッダー START -->
<div id="header">
<h1><a href="<?php bloginfo('url'); ?>"><img src="<?php bloginfo('template_url'); ?>/images/fron... | 017leena | custom_profile.php | PHP | oos | 883 |
<?php get_header(); ?>
<a name="pagetop" id="pagetop"></a>
<div id="wrapper">
<!-- コンテンツ START -->
<div id="main" class="top_main clearfix">
<!-- コンテンツ START -->
<div class="top_img">
<h1><img src="<?php bloginfo('template_url'); ?>/images/front/img_h1.png" alt="梨衣名" width="152" height="80" title="梨衣名" /></h... | 017leena | home.php | PHP | oos | 740 |
#lightbox{ position: absolute; left: 0; width: 100%; z-index: 100; text-align: center; line-height: 0;}
#lightbox img{ width: auto; height: auto;}
#lightbox a img{ border: none; }
#outerImageContainer{ position: relative; background-color: #fff; width: 250px; height: 250px; margin: 0 auto; }
#imageContainer{ padding: ... | 017leena | css/lightbox.css | CSS | oos | 1,648 |
/*------------------------------Gloval Navi */
#gnav {
width:520px;
height:35px;
}
.navi {
width:520px;
height:35px;
background-color:#000;
margin: 0;
padding: 0;
}
.navi li, .navi a {
height: 35px;
display: block;
}
.navi li {
float: left;
list-style: none;
display: inline;
text-indent: -9999em;
}
.me... | 017leena | css/gnavi.css | CSS | oos | 1,495 |
<div id="gnav" class="floatClear">
<ul class="navi">
<li id="gnav_Profile" class="gnav_01"><a href="http://dev.mastercontrol.jp/017leena/profile/" title="Profile" >Profile</a></li>
<li id="gnav_Information" class="gnav_02"><a href="http://dev.mastercontrol.jp/017leena/event/" title="Information">In... | 017leena | css/navi.tpl | Smarty | oos | 993 |
@charset "utf-8";
/*------------------------------Link */
a:link,a:visited {
color:#AE841D;
text-decoration:none;
}
a:hover {
color:#AE841D;
text-decoration:underline;
}
/*------------------------------Header */
#header {
width:520px;
height:115px;
margin:0;
background:url(./images/front/bg_header.jpg) no-r... | 017leena | rayout.css | CSS | oos | 4,870 |
<?php
function footer_html(){
$likeCount = facebook_likeCount("http://www.facebook.com/stockstyle");
print <<<FOOTER_STYLE
<div id="powerd">
Powerd by <a href="https://www.facebook.com/stockstyle">STOCK STYLE</a>
<span class="likeCountArrow"><span>$likeCount</span></span>
</div>
FOOTER_STYLE;
}
add_action(... | 017leena | lib/func_footer.php | PHP | oos | 356 |
<?php
// プラグイン
//remove_action( 'wp_head', 'wordbooker_header' );
remove_action( 'wp_head', 'wpogp_auto_include' );
remove_action( 'wp_head', 'wp_page_numbers_stylesheet' );
remove_action( 'wp_head', 'widget_akismet_style' );
remove_action( 'wp_head', 'feed_links' );
// システム
remove_action( 'wp_head', 'feed_links');
re... | 017leena | lib/func_header.php | PHP | oos | 5,663 |
<?php
// FacebookPageにリダイレクト
function redirectFB() {
if($_GET["app_data"] != "" && !ereg("facebook",$_SERVER['HTTP_USER_AGENT'])){
echo '<meta http-equiv="refresh" CONTENT="0;URL=' . FB_URL . "&app_data=" . $_GET["app_data"] . '" />';
exit;
}
}
function loadIframeFB(){
if ( isset($_R... | 017leena | lib/mastercontrol.php | PHP | oos | 4,997 |
<?php
function header_googleplus(){
print <<<GOOGLE_PLUS
<script type="text/javascript">
window.___gcfg = {lang: 'ja'};
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElements... | 017leena | lib/social.php | PHP | oos | 9,425 |
<?php
//+++++++++++++++++++++++++++++++++++++++++
//カスタムメニュー
register_nav_menus(array(
'navbar' => 'ナビゲーションバー',
'sidebar' => 'サイドバー'
));
function facebook_js(){
print <<<FACEBOOK_HEADER
<script type="text/javascript" src="https://connect.facebook.net/en_US/all.js"></script>
<script type="text/javascri... | 017leena | lib/func_gnavi.php | PHP | oos | 5,774 |
<?php
//+++++++++++++++++++++++++++++++++++++++++
// カスタムポスト Info 情報
register_post_type(
'Info',
array(
'label' => 'Infomation',
'hierarchical' => false,
'public' => true,
'query_var' => false,
'menu_icon' => get_bloginfo('template_url').'/images/tool/event.png',
... | 017leena | lib/module/info/func.php | PHP | oos | 8,779 |
<script>
var menu_Tag = "Info";
</script>
<link rel="stylesheet" href="/008akiakane/wp-content/themes/008akiakane/css/infomation.css" type="text/css" />
| 017leena | lib/module/info/header.php | Hack | oos | 154 |
<?php
/*
//+++++++++++++++++++++++++++++++++++++++++
// カスタムポスト photogallery
register_post_type(
'photogallery',
array(
'label' => 'フォトギャラリー',
'hierarchical' => false,
'public' => true,
'query_var' => false,
'menu_icon' => get_bloginfo('template_url').'/images/tool/medi... | 017leena | lib/module/other/func.php | PHP | oos | 1,842 |
<?php
//+++++++++++++++++++++++++++++++++++++++++
// カスタムポスト Profile
register_post_type(
'profile',
array(
'label' => 'Profile',
'hierarchical' => false,
'public' => true,
'query_var' => false,
'menu_icon' => get_bloginfo('template_url').'/images/tool/profile.png',
... | 017leena | lib/module/profile/func.php | PHP | oos | 1,135 |
<?php
//+++++++++++++++++++++++++++++++++++++++++
// カスタムポスト ITUNES
register_post_type(
'itunes',
array(
'label' => 'iTunes',
'hierarchical' => false,
'public' => true,
'query_var' => false,
'menu_icon' => get_bloginfo('template_url').'/images/tool/itune.png',
's... | 017leena | lib/module/itunes/func.php | PHP | oos | 1,227 |
<script>
var menu_Tag = "iTunes";
</script>
<link rel="stylesheet" href="/008akiakane/wp-content/themes/008akiakane/css/itunes.css" type="text/css" />
| 017leena | lib/module/itunes/header.php | Hack | oos | 153 |
<?php
//+++++++++++++++++++++++++++++++++++++++++
// カスタムポスト BLOG
register_post_type(
'blog',
array(
'label' => 'ブログ',
'hierarchical' => false,
'public' => true,
'query_var' => false,
'menu_icon' => get_bloginfo('template_url').'/images/tool/blog.png',
'supports'... | 017leena | lib/module/blog/func.php | PHP | oos | 6,402 |
<?php
register_post_type(
'gallery',
array(
'label' => 'Gallery',
'hierarchical' => false,
'public' => true,
'query_var' => false,
'menu_icon' => get_bloginfo('template_url').'/images/tool/media.png',
'supports' => array(
'title',
'editor'... | 017leena | lib/module/gallery/func.php | PHP | oos | 6,174 |
<?php
//+++++++++++++++++++++++++++++++++++++++++
// カスタムポスト PV (YouTube)
register_post_type(
'pv',
array(
'label' => 'PV',
'hierarchical' => false,
'public' => true,
'query_var' => false,
'menu_icon' => get_bloginfo('template_url').'/images/tool/youtube.png',
'... | 017leena | lib/module/pv/func.php | PHP | oos | 4,045 |
<?php
register_post_type(
'goods_book',
array(
'label' => 'Goods_BOOK',
'hierarchical' => false,
'public' => true,
'query_var' => false,
'menu_icon' => get_bloginfo('template_url').'/images/tool/goods.png',
'supports' => array(
'title',
'c... | 017leena | lib/module/goods/func.php | PHP | oos | 3,400 |
<script>
var menu_Tag = "Goods";
</script>
<link rel="stylesheet" href="/008akiakane/wp-content/themes/008akiakane/css/goods.css" type="text/css" />
| 017leena | lib/module/goods/header.php | Hack | oos | 151 |
<?php
//+++++++++++++++++++++++++++++++++++++++++
// カスタムポスト Twitter
register_post_type(
'twitter',
array(
'label' => 'Twitter',
'hierarchical' => false,
'public' => true,
'query_var' => false,
'menu_icon' => get_bloginfo('template_url').'/images/tool/twitter.png',
... | 017leena | lib/module/twitter/func.php | PHP | oos | 884 |
<?php
//+++++++++++++++++++++++++++++++++++++++++
// カスタムポスト デザイン
register_post_type(
'design',
array(
'label' => 'デザイン',
'hierarchical' => false,
'public' => true,
'query_var' => false,
'menu_icon' => get_bloginfo('template_url').'/images/tool/master_control_logo.png',
... | 017leena | lib/design/func.php | PHP | oos | 1,892 |
goog.provide('bentlyschemistrylab.GamePlayer');
goog.require("lime.Sprite");
goog.require("lime.Label");
goog.require("lime.RoundedRect");
goog.require("lime.fill.Frame");
goog.require("lime.audio.Audio");
var objMap = {
easy : [
{answer: "Hydrogen", x: 0, y: 0, width: 128, height: 128},
{answer: "Heli... | 06-june-1gam-bently-lab | trunk/gamePlayer.js | JavaScript | gpl3 | 10,192 |
//set main namespace
goog.provide('bentlyschemistrylab');
//get requirements
goog.require("lime.Director");
goog.require("lime.Scene");
goog.require("lime.Layer");
goog.require("lime.transitions.Dissolve");
goog.require("lime.audio.Audio");
goog.require('bentlyschemistrylab.GamePlayer');
// entrypoint
b... | 06-june-1gam-bently-lab | trunk/bentlyschemistrylab.js | JavaScript | gpl3 | 4,985 |
<!DOCTYPE HTML>
<html>
<head>
<title>bentlyschemistrylab</title>
<script type="text/javascript" src="../closure/closure/goog/base.js"></script>
<script type="text/javascript" src="bentlyschemistrylab.js"></script>
</head>
<body onload="bentlyschemistrylab.start()">
<div id="gameContainer" style="width: ... | 06-june-1gam-bently-lab | trunk/bentlyschemistrylab.html | HTML | gpl3 | 383 |