This file contains hidden or 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
#import <Foundation/Foundation.h> | |
@interface Communicator : NSObject <NSStreamDelegate> { | |
@public | |
NSString *host; | |
int port; | |
} | |
- (void)setup; |
This file contains hidden or 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 http = require('http'); | |
var jsdom = require('jsdom'); | |
var url = "http://deathtoglamour.com/articles/695-top-ten-sexiest-exploits-of-uk-olympic-gold-medal-winners-hopefully"; | |
var options = { | |
host: 'deathtoglamour.com', | |
port: 80, | |
path: '/articles/695-top-ten-sexiest-exploits-of-uk-olympic-gold-medal-winners-hopefully', | |
method: 'GET' | |
}; |
This file has been truncated, but you can view the full file.
This file contains hidden or 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
Last login: Mon Oct 1 14:46:27 on ttys000 | |
wifi-028036:~ iii$ cd test | |
wifi-028036:test iii$ ls | |
grab_image.js node_modules | |
wifi-028036:test iii$ clear | |
This file contains hidden or 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
#!/usr/local/bin/node | |
/** | |
* This file is part of Shorty. | |
* | |
* Shorty 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; version 3 of the License. | |
* | |
* Shorty is distributed in the hope that it will be useful, | |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
This file contains hidden or 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
exports.command_ids = { // Use command_ids to look up by ID | |
0x80000000: 'generic_nack', | |
0x00000001: 'bind_receiver', | |
0x80000001: 'bind_receiver_resp', | |
0x00000002: 'bind_transmitter', | |
0x80000002: 'bind_transmitter_resp', | |
0x00000003: 'query_sm', | |
0x80000003: 'query_sm_resp', | |
0x00000004: 'submit_sm', | |
0x80000004: 'submit_sm_resp', |
This file contains hidden or 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
#import "MyAVController.h" | |
@implementation MyAVController | |
@synthesize captureSession = _captureSession; | |
@synthesize imageView = _imageView; | |
@synthesize customLayer = _customLayer; | |
@synthesize prevLayer = _prevLayer; |
This file contains hidden or 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
VERSION=v2.4 | |
prefix=/usr/local | |
incdir=$(prefix)/include/librtmp | |
bindir=$(prefix)/bin | |
libdir=$(prefix)/lib | |
mandir=$(prefix)/man | |
BINDIR=$(DESTDIR)$(bindir) | |
INCDIR=$(DESTDIR)$(incdir) |
This file contains hidden or 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
#!/bin/sh | |
sudo apt-get update | |
sudo apt-get upgrade | |
sudo apt-get install unzip default-jdk default-jre htop | |
cd ~ | |
wget http://red5.org/downloads/red5/1_0/red5-1.0.0-RC2.zip | |
unzip red5-1.0.0-RC2.zip | |
chmod +x ./red5.sh | |
./red5.sh |
This file contains hidden or 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
// demo.cpp : 定义控制台应用程序的入口点。 | |
// | |
#include "stdafx.h" | |
#include <MqOaI.h> | |
extern "C" | |
{ | |
#include "../../common/common.h" | |
#include "../../common/cpu.h"" | |
#include "../../x264.h" | |
#include "../../encoder/set.h" |
This file contains hidden or 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
#!/bin/sh | |
echo "yasm installation script for Mac OS X 10.8.2" | |
echo "you should have brew installed!" | |
git clone git://github.com/yasm/yasm.git | |
cd yasm | |
brew install autoconf automake | |
sh ./autogen.sh | |
./configure |