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
if (Meteor.isClient) { | |
Meteor.startup(function () { | |
loadbinaryjs(); | |
var client = new BinaryClient('ws://localhost:9000'); | |
client.on('stream', function(stream, meta){ | |
var parts = []; | |
stream.on('data', function(data){ |
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
<!DOCTYPE html> | |
<html ng-app> | |
<head> | |
<title></title> | |
<script src="http://code.jquery.com/jquery-1.9.1.js"></script> | |
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.0-rc.3/angular.min.js"></script> |
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
#include <iostream> | |
#include <string> | |
#include <memory> | |
#include <fstream> | |
#include <Ice/Ice.h> | |
#include "send.h" | |
using namespace std; |
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
Deps.autorun(function(){ | |
Meteor.subscribe(name); | |
var cursor = collection.find(selector, options); | |
if(!scope.hasOwnProperty(name)){ | |
scope[name] = collection.find(selector, options).fetch(); | |
} | |
else{ | |
cursor.forEach(function(meteorElement){ | |
var wasFound = false; |
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
#include<iostream> | |
#include<Eigen/Dense> | |
#include<Eigen/LU> | |
#include<vector> | |
using namespace std; | |
template<class PixelType> | |
class Framebuffer | |
{ | |
protected: |
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
#RUST | |
//x0-x1 input range y0-y1 output range : x input cursor | |
pub fn lerp(x0: f32, x1: f32, y0: f32, y1: f32, x: f32) -> f32 { | |
y0 + (x - x0) * ((y1 - y0) / (x1 - x0)) | |
} |
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
// Port of the C# 101 LINQ Samples rewritten into Apple's Swift 3. | |
#![feature(ordering_chaining, step_by)] | |
fn main() { | |
// linq5: Where - Indexed | |
/* | |
//c# | |
public void Linq5() | |
{ |
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
package javaapplication4; | |
import java.util.Iterator; | |
public class JavaApplication4 { | |
public static class ClassA { | |
public int getAId() { | |
return 1; | |
} |
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 java.lang.reflect.Field; | |
public class Main { | |
//a container holding all kinds of stuff | |
interface Container<F,M,L> { | |
boolean contains(F f, M m, L l); | |
F first(); | |
M middle(); | |
L last(); |
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
public class Main { | |
//a container holding all kinds of stuff | |
interface Container<F,M,L> { | |
boolean contains(F f, M m, L l); | |
F first(); | |
M middle(); | |
L last(); | |
} |
OlderNewer