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
a = function () { document.location = 'data:Application/octet-stream,' + encodeURIComponent('https://mail.google.com/mail/u/0/?ui=2&ik=e1913f44b3&view=att&th=13d665d8231c76ab&attid=0.1&disp=safe&realattid=f_he976fi52&zw'); } | |
b = function () { document.location = 'data:Application/octet-stream,' + encodeURIComponent('https://mail.google.com/mail/u/0/?ui=2&ik=e1913f44b3&view=att&th=13d665d8231c76ab&attid=0.2&disp=safe&realattid=f_he97711p3&zw'); } | |
c = function () { a(); setTimeout(b, 100); } | |
c(); |
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
## | |
# This file is auto-generated. DO NOT EDIT! | |
# | |
require 'protobuf/message' | |
module Greeting_Api | |
## | |
# Message Classes | |
# |
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 greeting_api; | |
message Greeting | |
{ | |
optional string message = 1; | |
} |
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
message simple_mail | |
{ | |
optional string body = 1; | |
} | |
message mail_list | |
{ | |
repeated simple_mail simple_mails = 1; | |
} |
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
## | |
# This file is auto-generated. DO NOT EDIT! | |
# | |
require 'protobuf/message' | |
## | |
# Message Classes | |
# | |
class simple_mail < ::Protobuf::Message; end |
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
static String colorToString(int color) | |
{ | |
return new String( | |
" a:" + Color.alpha(color) + | |
" r:" + Color.red(color) + | |
" g:" + Color.green(color) + | |
" b:" + Color.blue(color) | |
); | |
} |
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
function JSON2CSV(objArray) { | |
var array = typeof objArray != 'object' ? JSON.parse(objArray) : objArray; | |
var str = ''; | |
var line = ''; | |
if ($("#labels").is(':checked')) { | |
var head = array[0]; | |
if ($("#quote").is(':checked')) { | |
for (var index in array[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
#example data | |
data = [ | |
{ | |
:time => Time.now - 2.days, | |
:value => 2321.65 | |
}, | |
{ | |
:time => Time.now - 1.days, | |
:value => 1307.98 | |
}, |
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
getDayName = function(day) | |
{ | |
return {0:"Sunday",1:"Monday",2:"Tuesday",3:"Wednesday",4:"Thursday",5:"Friday",6:"Saturday"}[day]; | |
}; | |
getDayDiffString = function(now, before) | |
{ | |
if((now - before) < 1000*60*60*24*5) | |
{ | |
var dayDiff = now.getDay() - before.getDay(); |
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
var hat = require('hat'); | |
var _ = require('lodash'); | |
var rack = {}; | |
for(var i = 0; i < 1000000; i++) { | |
var id = hat(); | |
rack[id] = rack[id] ? rack[id] + 1 : 1; | |
} |
OlderNewer