Skip to content

Instantly share code, notes, and snippets.

View drreddy's full-sized avatar

D. Rajeev. Reddy drreddy

View GitHub Profile
(function() {
var l=void 0,m=!0,q=null,D=!1;
(function(){function Aa(){function a(){if(!a.zc)la=a.zc=m,ma=D,c.a(F,function(a){a.nc()})}function b(){try{u.documentElement.doScroll("left")}catch(d){setTimeout(b,1);return}a()}if(u.addEventListener)"complete"===u.readyState?a():u.addEventListener("DOMContentLoaded",a,D);else if(u.attachEvent){u.attachEvent("onreadystatechange",a);var d=D;try{d=t.frameElement===q}catch(f){}u.documentElement.doScroll&&d&&b()}c.Qb(t,"load",a,m)}function Ba(){y.init=function(a,b,d){if(d)return y[d]||(y[d]=F[d]=S(a,
b,d),y[d].ha()),y[d];d=y;if(F.mixpanel)d=F.mixpanel;else if(a)d=S(a,b,"mixpanel"),d.ha(),F.mixpanel=d;y=d;1===ca&&(t.mixpanel=y);Ca()}}function Ca(){c.a(F,function(a,b){"mixpanel"!==b&&(y[b]=a)});y._=c}function da(a){a=c.e(a)?a:c.g(a)?{}:{days:a};return c.extend({},Da,a)}function S(a,b,d){var f,h="mixpanel"===d?y:y[d];if(h&&0===ca)f=h;else{if(h&&!c.isArray(h)){o.error("You have already initialized "+d);return}f=new e}f.gb={};f.V(a,b,d);f.people=new j;f.people.V(f);if(!f.c(
@drreddy
drreddy / gist:b9517c3fbb7dec9c5ebfdd5603455c59
Last active September 21, 2023 09:28
sb_custom_pixel.js
analytics.subscribe("all_events", async (event) => {
const {id: eventId, clientId, name, timestamp, context, data, customData} = event
const {window: windowContext, document: documentContext, navigator: navigatorContext} = context
console.log(`Pixel data ${eventId} ${name} ${JSON.stringify(windowContext)} ${JSON.stringify(documentContext)} ${JSON.stringify(navigatorContext)} ${data} ${customData}`)
})
''' Script for downloading all GLUE data.
Note: for legal reasons, we are unable to host MRPC.
You can either use the version hosted by the SentEval team, which is already tokenized,
or you can download the original data from (https://download.microsoft.com/download/D/4/6/D46FF87A-F6B9-4252-AA8B-3604ED519838/MSRParaphraseCorpus.msi) and extract the data from it manually.
For Windows users, you can run the .msi file. For Mac and Linux users, consider an external library such as 'cabextract' (see below for an example).
You should then rename and place specific files in a folder (see below for an example).
mkdir MRPC
cabextract MSRParaphraseCorpus.msi -d MRPC
name: "AlexNet"
layer {
name: "data_n"
type: "ImageData"
top: "data_n"
top: "label_n"
include {
phase: TRAIN
}
transform_param {

What I Wish I'd Known About Equity Before Joining A Unicorn

Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.

This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would

Commands examples

If the namespace is not used then the commands will perform on top of the default database. bundle exec rake db:create bundle exec rake db:migrate

By using the namespace we are going to use all the configuration for our alternate DB. bundle exec rake store:db:create bundle exec rake store:db:migrate

# -*- coding: utf-8 -*-
"""
This scripts reqire a third party module 'requests'.
You can get it from PyPI, i.e. you can install it using
easy_install or pip.
http://docs.python-requests.org/en/v0.10.4/
Original source code is written by shin1ogawa, which is in Java.