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
import javafx.util.Pair; | |
import java.io.FileInputStream; | |
import java.io.FileNotFoundException; | |
import java.util.*; | |
import java.util.function.ToIntFunction; | |
public class Main2 { | |
public static void main(String[] args) throws FileNotFoundException { |
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
import javafx.util.Pair; | |
import java.io.FileInputStream; | |
import java.io.FileNotFoundException; | |
import java.util.*; | |
import java.util.function.ToIntFunction; | |
public class Main2 { | |
public static void main(String[] args) throws FileNotFoundException { |
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
import javafx.util.Pair; | |
import java.io.FileInputStream; | |
import java.io.FileNotFoundException; | |
import java.util.*; | |
import java.util.function.ToIntFunction; | |
public class Main2 { | |
public static void main(String[] args) throws FileNotFoundException { |
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
import java.io.FileInputStream; | |
import java.io.FileNotFoundException; | |
import java.util.Arrays; | |
import java.util.Collections; | |
import java.util.Scanner; | |
public class Main { | |
public static void main(String[] args) throws FileNotFoundException { |
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
package net.swarmdb; | |
import io.netty.bootstrap.Bootstrap; | |
import io.netty.buffer.Unpooled; | |
import io.netty.channel.Channel; | |
import io.netty.channel.ChannelInitializer; | |
import io.netty.channel.ChannelPipeline; | |
import io.netty.channel.EventLoopGroup; | |
import io.netty.channel.nio.NioEventLoopGroup; | |
import io.netty.channel.socket.SocketChannel; |
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
#include <iostream> | |
using namespace std; | |
void read() | |
{ | |
int c; | |
std::cin >> c; |
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
define([ | |
'backbone', | |
], function(Backbone) { | |
var feedPhotoGrid = Backbone.View.extend({ | |
options: { | |
rowSelector: '.feed-photo-row', | |
cellSelector: '.feed-photo-cell', |
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
angular.module('ny.logger', []).provider('Logger', [function () { | |
var isEnabled = true; | |
this.enabled = function(_isEnabled) { | |
isEnabled = !!_isEnabled; | |
}; | |
this.$get = ['$log', function($log) { | |
var Logger = function(context) { | |
this.context = context; | |
}; | |
Logger.getInstance = function(context) { |
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
import java.io.File; | |
import java.io.FileNotFoundException; | |
import java.util.Arrays; | |
import java.util.Scanner; | |
/* | |
5 | |
2 3 9 2 9 | |
10 |
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 system = require('system'); | |
if (system.args.length < 3) { | |
console.log("Missing arguments."); | |
phantom.exit(); | |
} | |
var server = require('webserver').create(); | |
var port = parseInt(system.args[1]); | |
var urlPrefix = system.args[2]; |