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
| forceRerenderOnWebkit: -> | |
| @el.parentNode.style.cssText += ';-webkit-transform:rotateZ(0deg)' | |
| @el.parentNode.offsetHeight | |
| @el.parentNode.style.cssText += ';-webkit-transform:none' |
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
| repaint: function() { | |
| var self = this; | |
| Yieldmo.foreach(self.placements, function(placement){ | |
| if (placement){ | |
| var t = document.createTextNode(' '); | |
| placement.appendChild(t); | |
| placement.offsetHeight; // forces repaint | |
| setTimeout(function() { placement.removeChild(t); }, 0); | |
| } | |
| }); |
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
| instances = new ImpressionKafkaLogger[IMPRESSIONS_LOGGING_THREADS]; | |
| for (int i=0; i<instances.length;i++) { | |
| instances[i] = new ImpressionKafkaLogger(i); | |
| instances[i].start(); | |
| } |
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
| [user] | |
| name = agallego | |
| email = gallego.alexx@gmail.com | |
| [color] | |
| ui = auto | |
| branch = auto | |
| diff = auto | |
| status = auto | |
| [color "branch"] | |
| current = yellow reverse |
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 com.yieldmo.protobuf; | |
| option java_package = "com.yieldmo.protobuf"; | |
| option java_generate_equals_and_hash = true; | |
| option java_outer_classname = "AdServer"; | |
| // landscaper experiment ids are not here on purpose | |
| // these are only variables available on request | |
| // or that are translated form a request |
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
| private static final long addressOffset; | |
| static { | |
| try { | |
| addressOffset = UnsafeAccess.unsafe.objectFieldOffset(Buffer.class.getDeclaredField("address")); | |
| } catch (Exception e) { | |
| throw new RuntimeException(e); | |
| } | |
| } | |
| public static long getAddress(ByteBuffer buffy) { |
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 sbt._ | |
| import Keys._ | |
| object Format { | |
| import com.typesafe.sbt.SbtScalariform._ | |
| lazy val settings = scalariformSettings ++ Seq( | |
| ScalariformKeys.preferences := formattingPreferences, | |
| unmanagedSourceDirectories in (Compile,ScalariformKeys.format) <+= baseDirectory( _/"src" ), |
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/bin/env python | |
| """A Python git pre-commit script for Go programming language projects. | |
| Install the script by putting it in .git/hooks/ directory in your project | |
| directory. The script file must be called "pre-commit". Make sure the | |
| executable flag in the script file is set. The script assumes you are building | |
| your project with make. | |
| The script makes sure that all go source files in the project have valid |
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 com.yieldmo.common.test.utils; | |
| import java.lang.ClassLoader; | |
| import java.net.URL; | |
| final public class ResourceUtils { | |
| static public String getResourceFilename(String filename){ | |
| ClassLoader loader = ResourceUtils.class.getClassLoader(); | |
| URL resourceUrl = loader.getResource(filename); | |
| if(resourceUrl != null && |
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
| ilya grigorik | |
| -chrome: | |
| techniques: | |
| 70% of time is network. | |
| not really bound by bandwidth. | |
| bandwidth chart. --> look at that on chrome. | |
| look at connection view (tcp connection did we open for this page) -- lag time | |
| minimize the RTT --> | |
| pre-resolve | |
| preconnect |