Skip to content

Instantly share code, notes, and snippets.

@tunks
tunks / mongo_to_csv.py
Last active Jun 20, 2019 — forked from mieitza/mongo_to_csv.py
python mongo to csv use pandas.
View mongo_to_csv.py
# @Author: xiewenqian <int>
# @Date: 2016-11-28T20:35:09+08:00
# @Email: wixb50@gmail.com
# @Last modified by: int
# @Last modified time: 2016-12-01T19:32:48+08:00
import pandas as pd
from pymongo import MongoClient
View gist:be1167837a7646f6e2b46b1ed51ceec3
1509226, 2161674, 2232744, 371667, trusso@redpaladin.com, employee
View PieView.java
package com.msh_n.myp.customview1;
import android.app.Activity;
import android.content.Context;
import android.content.res.Configuration;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Path;
View keybase.md

Keybase proof

I hereby claim:

  • I am saddington on github.
  • I am 8bit (https://keybase.io/8bit) on keybase.
  • I have a public key ASDhHh3Z7MrNnf6_vSfFnX3NGp0-hizb28ldSInWxztNAQo

To claim this, I am signing this object:

View nolinks
View gist:5e40df1bfdf9f76170d9059b53140606
User user = new User();
/// all setters of user.
List<ContactDto> contactDtos = new ArrayList<ContactDto>();
ContactDto contact = new ContactDto();
contact.set //// all setters of ContactDto
ContactDto contact2 = new ContactDto();
contact2.set //// all setters of ContactDto
contactDtos.add(contact);
contactDtos.add(contact2);
View linux_one_liners.md

Just some useful one liners.

  • A better way to get the ARCH for a binary:

    readelf -a -W <binary> | grep CPU
    
@kkuchta
kkuchta / list_comprehensions.rb
Created Jun 20, 2019
List comprehension in ruby
View list_comprehensions.rb
require 'pry-byebug'
module ListComprehension
def self.execute(block)
context = OuterBlockContextClass.new
# Set up variables + blocks
context.instance_eval(&block)
# evaluate the comprehension
@ryanemerson
ryanemerson / ReplicationExceptionTest.java
Created Jun 20, 2019
Remove @SerializeWith(Externalizer.class) and test will pass
View ReplicationExceptionTest.java
package org.infinispan.replication;
import static org.testng.AssertJUnit.assertNotNull;
import static org.testng.AssertJUnit.assertTrue;
import static org.testng.AssertJUnit.fail;
import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
import java.io.Serializable;
You can’t perform that action at this time.