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
// JS | |
function GJAPI_AuthUser( objectName, functionName ) | |
{ | |
unity.getUnity().SendMessage( objectName, functionName, "username:token" ); | |
} | |
// Unity | |
// Once the game is ready to login... | |
Application.ExternalCall( "GJAPI_AuthUser", "GameObject", "AuthUser" ); |
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
make-row( gutter-width = $grid-gutter-width ) | |
@extend .clearfix | |
margin-left: -(gutter-width / 2)px | |
margin-right: @margin-left | |
make-grid-breakpoint( breakpoint, columns = $grid-columns ) | |
// Loop in reverse to cascade correctly for precedence. | |
// It's super hacky, but I don't know of a different way to do it in Stylus. | |
for col-index in 1..columns |
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
#! /bin/bash | |
# originally from http://tinyurl.com/twitch-linux from taladan | |
# www.youtube.com/user/taladan | |
# script created by brodul | |
# modified by yours truly: CROS | |
# You obviously must make sure ffmpeg is installed on your OS. | |
INRES="1920x1080" # input resolution (The resolution of the program you want to stream!) |
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
/** | |
* Make sure you use this to track any clicks. It does more than just track(). | |
* @param {Event} event The event object for the click event. | |
* @param {Object} elem The actual DOM element. | |
* @param {string} category | |
* @param {string} action | |
* @param {string} label | |
* @param {string} value | |
*/ | |
trackClick: function( event, elem, category, action, label, value ) |
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 EventTracking = { | |
init: function() | |
{ | |
$( '.ga-event' ).on( 'click', function(){ | |
var event_data = $( this ).data( 'ga-event' ); | |
if ( event_data ) | |
{ | |
var pieces = event_data.split( ':' ); | |
EventTracking.track( pieces[0], pieces[1], pieces[2], pieces[3] ); |
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 http = require( 'http' ); | |
http.globalAgent.maxSockets = 150 | |
var host = 'api-01.gamejolt.com'; | |
var gameId = 1; | |
var totalResponses = 0; | |
var prev = 0; | |
if ( true ) { |