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
using ColossalFramework; | |
using ICities; | |
using UnityEngine; | |
namespace EnableAchievementsMod { | |
public class EnableAchievements : IUserMod { | |
public string Name { | |
get { return "Enable Achievements"; } | |
} |
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
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; |
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
> unpacked = MessagePack.unpack(File.read('/home/marco/Downloads/all_ext.msgpack')) | |
=> [#<MessagePack::Extended:0x00000002a83750>, #<MessagePack::Extended:0x00000002a836d8>, #<MessagePack::Extended:0x00000002a83660>, #<MessagePack::Extended:0x00000002a835e8>, #<MessagePack::Extended:0x00000002a83458>, #<MessagePack::Extended:0x00000002a83368>, #<MessagePack::Extended:0x00000002a83318>, #<MessagePack::Extended:0x00000002a83278>] | |
> unpacked.map(&:type) | |
=> [1, 2, 3, 4, 5, 6, 7, 6] | |
> unpacked.map(&:data).map(&:size) | |
=> [1, 2, 4, 8, 16, 3, 256, 65536] | |
> unpacked.map(&:data) |
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
require 'eventmachine' | |
module EchoServer | |
def post_init | |
puts "-- someone connected to the echo server!" | |
end | |
def receive_data data | |
send_data ">>>you sent: #{data}" | |
close_connection if data =~ /quit/i |
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
#!/usr/bin/env ruby | |
class Game | |
attr_accessor :name, :year, :system | |
attr_reader :created_at | |
def initialize(name, options={}) | |
self.name = name | |
self.year = options[:year] | |
self.system = options[:system] |
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
Im direkten Vergleich mit dem Dell U2312HM ist der Asus einen Tick besser und bietet einige zusätzliche Ausstattungsmerkmale wie zum Beispiel die Bild-in-Bild Funktion, was auch den Unterschied in der Bewertung ausmacht. Insbesondere bei der Bildhomogenität, dem Reaktionsverhalten (Stärke des Overdrive kann selbst eingestellt werden) und der Interpolation hat Asus mehr anzubieten. Dafür offeriert Dell seine Leistung zu einem weitaus geringeren Preis an. Der Mehrpreis beim Asus wiegt die etwas besseren Teilergebnisse nach unserer Meinung aber nicht ganz auf. |
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
public int GetMaxValue(Array numbers) { | |
max = numbers[0]; | |
foreach(int number in numbers) { | |
if(number > max) max = number; | |
} | |
} | |
public int GetMinValue(Array numbers) { | |
min = numbers[0]; |