Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am mkrdip on github.
  • I am mkrdip (https://keybase.io/mkrdip) on keybase.
  • I have a public key ASBiH9sLkSlzRR31TGfv8rwfbeUhPQUgZrzbutIK6qq31wo

To claim this, I am signing this object:

@mkrdip
mkrdip / remove-gf-divi.php
Last active January 13, 2021 13:32
Remove Google Fonts from Divi
<?php
function wpse_dequeue_google_fonts() {
wp_dequeue_style( 'divi-fonts' );
}
add_action( 'wp_enqueue_scripts', 'wpse_dequeue_google_fonts', 20 );
@mkrdip
mkrdip / resize-divi-fullwidth-slider.css
Created August 1, 2015 19:11
Resize Divi Full Width Slider on Mobile & Tablet
@media screen and (max-width:900px)
{
.et_pb_fullwidth_slider_0 .et_pb_slide {
background-size: contain!important;
height: 250px !important;
}
}
@media screen and (max-width:479px)
@mkrdip
mkrdip / find-the-two-numbers-in-a-sorted-array-which-sum-up-to-given-number.py
Created September 13, 2018 22:54 — forked from miku/find-the-two-numbers-in-a-sorted-array-which-sum-up-to-given-number.py
Given a sorted array of integers and a target integer, find a pair of integers in the array that sum to the target in linear time.
#!/usr/bin/env python
# http://www.disinformatics.com/blog/2010/12/14/a-google-internship-interview-question-in-scala/
# The question is:
# given a sorted array of integers and a target integer,
# find a pair of integers in the array that sum to the target in linear time.
# The Solution
#
@mkrdip
mkrdip / parse.js
Created September 7, 2018 09:04
jquery - Parse JSON with jQuery Example
/********************************** example **************************************/
var base_url = 'http://people.cs.uct.ac.za/~swatermeyer/VulaMobi/';
function example()
{
var response = "";
var form_data = {
username: username,
password: password
@mkrdip
mkrdip / The Technical Interview Cheat Sheet.md
Created September 4, 2018 23:11 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery('.et_pb_video_overlay').click(function(){
jQuery(this).parent().find('video')[0].play();
});
});
</script>
@mkrdip
mkrdip / neo4j_cypher_cheatsheet.md
Created January 11, 2018 17:59 — forked from DaniSancas/neo4j_cypher_cheatsheet.md
Neo4j's Cypher queries cheatsheet

Neo4j Tutorial

Fundamentals

Store any kind of data using the following graph concepts:

  • Node: Graph data records
  • Relationship: Connect nodes (has direction and a type)
  • Property: Stores data in key-value pair in nodes and relationships
  • Label: Groups nodes and relationships (optional)
@mkrdip
mkrdip / bloom-optin-size.css
Created September 9, 2015 20:38
Decrease size of form & it's all elements (Bloom plugin)
.et_bloom_form_container.with_edge.curve_edge.et_bloom_rounded_corners.et_bloom_rounded.et_bloom_form_text_dark.et_bloom_form_right.et_bloom_inline_2_fields {
transform: scale(0.8, 0.8);
-ms-transform: scale(0.8, 0.8); /* IE 9 */
-webkit-transform: scale(0.8, 0.8); /* Safari and Chrome */
-o-transform: scale(0.8, 0.8); /* Opera */
-moz-transform: scale(0.8, 0.8); /* Firefox */
}
@media only screen and ( min-width:980px ) {
#et_mobile_nav_menu { display: block }
#top-menu { display: none;}
}
/* Wrong codes here: http://www.divithemeexamples.com/show-divi-mobile-menu-on-desktops/ */