Skip to content

Instantly share code, notes, and snippets.

View bragboy's full-sized avatar
🧘
Inner peace

Bragadeesh bragboy

🧘
Inner peace
View GitHub Profile
@bragboy
bragboy / linkedin_junk
Created August 22, 2020 19:41
Ublock origin filter methods to prevent linkedin junk/promotion on your face.
! 31/07/2018, 21:08:01 https://www.linkedin.com/feed/
www.linkedin.com###ember2092
! 31/07/2018, 21:08:35 https://www.linkedin.com/notifications/
www.linkedin.com###ember6985
! 13/08/2018, 17:09:08 https://www.linkedin.com/feed/
www.linkedin.com###ember1959 > .video-s-loader__video-components-container
! 21/12/2018, 13:57:28 https://www.linkedin.com/in/chandramouliswaran-v-phd-7378075/
@bragboy
bragboy / desired_output.json
Created March 10, 2019 18:04
Elasticsearch Collapse and Inner_hits
{
"took": 11,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
@bragboy
bragboy / bulk_index.ndjson
Created March 10, 2019 17:28
Bulk Index for employees
{"index": {"_index": "employees","_type": "_doc","_id": "1"}}
{"employee": "Emp 01","city": "Chicago","age": 24}
{"index": {"_index": "employees","_type": "_doc","_id": "2"}}
{"employee": "Emp 02","city": "San Francisco","age": 26}
{"index": {"_index": "employees","_type": "_doc","_id": "3"}}
{"employee": "Emp 03","city": "San Francisco","age": 28}
{"index": {"_index": "employees","_type": "_doc","_id": "4"}}
{"employee": "Emp 04","city": "San Francisco","age": 30}
{"index": {"_index": "employees","_type": "_doc","_id": "5"}}
{"employee": "Emp 05","city": "San Francisco","age": 32}
A
A + Certified
A-110
A-122
A-123
A-133
A-frames
A-GPS
A/B Testing
A/R analysis
require 'anemone'
#The below count is manually extracted from https://www.linkedin.com/directory/topics-X where 'X' is the alphabet
word_to_char = {
a: 98, b: 100, c: 99, d: 99, e: 99, f: 97, g: 96, h: 95, i: 100, j: 88, k: 92, l: 97, m: 100,
n: 94, o: 99, p: 99, q: 87, r: 100, s: 100, t: 100, u: 94, v: 96, w: 100, x: 73, y: 53, z: 0
}
all_urls, skipped_urls = [], []
word_to_char.each{ |char, count| 1.upto(count) { |num| all_urls << "https://www.linkedin.com/directory/topics-#{char}-#{num}/" } }
var globalLoop = 0;
looper = function(){
if(globalLoop < 5){
setTimeout(function() { braga() }, 30000);
}
}
clicker = function(){
console.log("Time: "+(globalLoop+1));
package dsa.tries;
import java.awt.Dimension;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
package dsa.tries;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
public class TrieLoader {
public static Trie trieDSA;
package dsa.tries;
public class Trie{
private Node root;
public Trie(){
root = new Node(' ');
}
public void insert(String s){
package dsa.tries;
import java.util.Collection;
import java.util.LinkedList;
/**
* @author Braga
*/
public class Node {
char content;