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 com.veinhorn.playground; | |
import java.util.Arrays; | |
import java.util.Iterator; | |
import java.util.LinkedList; | |
import java.util.List; | |
public class Main { | |
public static void main(String[] args) { | |
removeAllEventNumbersFromLinkedList(); |
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 models.auth | |
import play.api.mvc.Results.Unauthorized | |
import play.api.mvc.Security.AuthenticatedRequest | |
import play.api.mvc._ | |
import scala.concurrent.{ExecutionContext, Future} | |
import scala.language.reflectiveCalls | |
class AsyncAuthenticatedBuilder[U]( | |
userinfo: RequestHeader => Future[U], // Future[U] against Option[U] |
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 com.veinhorn.playground; | |
import java.io.IOException; | |
import java.util.Arrays; | |
import java.util.HashMap; | |
import java.util.List; | |
import java.util.Map; | |
import java.util.stream.Collectors; | |
public class Main { |
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 requestCallback; | |
chrome.storage.sync.get({ | |
redirect_domain : "zerx.co", | |
domain_checking_interval : 5000 | |
}, function(items) { | |
console.log(items.domain_checking_interval); | |
setInterval(function() { | |
console.log('Domain name updated.'); |
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
// Generated by CoffeeScript 1.8.0 | |
(function() { | |
var SnakeGame, | |
__bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }; | |
window.onload = function() { | |
var canvas, snakeGame; | |
canvas = document.getElementById("snake_game"); | |
snakeGame = new SnakeGame(canvas, 40, "#061059"); | |
snakeGame.start(); |
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
iodevice = file:open("client/" ++ Filename, [read, binary]) | |
send_file_binary(Socket, IoDevice, Offset) -> | |
case file:pread(IoDevice, Offset, 1000) of | |
{ok, Data} -> | |
io:format("~B bytes sent.", [Offset + 1000]), | |
gen_tcp:send(Socket, <<1:32/integer, Data/binary>>), | |
send_file_binary(Socket, IoDevice, Offset + 1000); | |
eof -> | |
io:format("File sent."), |
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
handle(Data) -> | |
case Data =:= "TIME\r\n" of | |
true -> | |
io:format("true\n"); | |
false -> | |
io:format("false\n") | |
end. |
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
/* | |
Ìåñòî èíäèêàöèè - Ëåâûé âåðõíèé óãîë | |
Îðèåíòàöèß (ïîâîðîò) òåêñòà - 180 ãðàäóñîâ | |
Çåðêàëüíîå îòðàæåíèå - âåðòèêàëüíî, òîëüêî ñèìâîëû | |
Îñü èçìåðåíèé àêñåëåðîìåòðà - Z | |
*/ | |
#include "msp430f5529.h" | |
#define BUTTON 7 //PORT1 |
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
/* | |
Ìåñòî èíäèêàöèè - Ëåâûé âåðõíèé óãîë | |
Îðèåíòàöèß (ïîâîðîò) òåêñòà - 180 ãðàäóñîâ | |
Çåðêàëüíîå îòðàæåíèå - âåðòèêàëüíî, òîëüêî ñèìâîëû | |
Îñü èçìåðåíèé àêñåëåðîìåòðà - Z | |
*/ | |
#include "msp430f5529.h" | |
#define BUTTON 7 //PORT1 |
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 arr = 0; | |
var query = connection.query('INSERT INTO mydb2.User SET ?', account, function(err, result) { | |
//console.log('Created account with id: ' + result.insertId + ' ' + username); | |
arr = result.insertId; | |
//userId = result.insertId; | |
}); | |
console.log('Created account with id: ' + arr); |
NewerOlder