Skip to content

Instantly share code, notes, and snippets.

View searchs's full-sized avatar
💭
Architecting systems in a data world

Ola Ajibode searchs

💭
Architecting systems in a data world
View GitHub Profile
@searchs
searchs / css-media-queries-cheat-sheet.css
Created January 26, 2022 22:04 — forked from bartholomej/css-media-queries-cheat-sheet.css
CSS Media Query Cheat Sheet (with Foundation)
/*------------------------------------------
Responsive Grid Media Queries - 1280, 1024, 768, 480
1280-1024 - desktop (default grid)
1024-768 - tablet landscape
768-480 - tablet
480-less - phone landscape & smaller
--------------------------------------------*/
@media all and (min-width: 1024px) and (max-width: 1280px) { }
@media all and (min-width: 768px) and (max-width: 1024px) { }
https://github.com/EbookFoundation/free-programming-books
https://github.com/ohmyzsh/ohmyzsh
https://github.com/TheAlgorithms/Python
https://github.com/30-seconds/30-seconds-of-code
https://github.com/mui-org/material-ui
https://github.com/iluwatar/java-design-patterns
https://github.com/avelino/awesome-go
https://github.com/django/django
https://github.com/pallets/flask
https://github.com/chartjs/Chart.js

FWIW: I'm not the author of the content presented here (which is an outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.


Effective Engineer - Notes

What's an Effective Engineer?

@searchs
searchs / .rubocop.yml
Created February 2, 2021 00:20 — forked from jhass/.rubocop.yml
My preferred Rubocop config
AllCops:
RunRailsCops: true
# Commonly used screens these days easily fit more than 80 characters.
Metrics/LineLength:
Max: 120
# Too short methods lead to extraction of single-use methods, which can make
# the code easier to read (by naming things), but can also clutter the class
Metrics/MethodLength:
@searchs
searchs / postgres-brew.md
Created January 25, 2021 01:07 — forked from ibraheem4/postgres-brew.md
Installing Postgres via Brew (OSX)

Installing Postgres via Brew

Pre-Reqs

Brew Package Manager

In your command-line run the following commands:

  1. brew doctor
  2. brew update
@searchs
searchs / kafka_helpfuls.sh
Created February 22, 2020 21:22
Kafka Commands List
## Kafka Topics
### List existing topics
`bin/kafka-topics.sh --zookeeper localhost:2181 --list`
### Describe a topic
`bin/kafka-topics.sh --zookeeper localhost:2181 --describe --topic mytopic `
### Purge a topic
`bin/kafka-topics.sh --zookeeper localhost:2181 --alter --topic mytopic --config retention.ms=1000`
... wait a minute ...
@searchs
searchs / Marketing_Reports.sql
Created February 5, 2020 09:53
Marketing Reports
-- TASKS (using Postgres SQL)
-- TASK 1
-- CTE: Common Table Expressions
-- TABLE: Customer
SET timezone = 'UTC';
CREATE TABLE IF NOT EXISTS Customers (
id SERIAL PRIMARY KEY,
@searchs
searchs / Spark Dataframe Cheat Sheet.py
Created September 20, 2018 12:25 — forked from AlessandroChecco/Spark Dataframe Cheat Sheet.py
Cheat sheet for Spark Dataframes (using Python)
# A simple cheat sheet of Spark Dataframe syntax
# Current for Spark 1.6.1
# import statements
#from pyspark.sql import SQLContext
#from pyspark.sql.types import *
#from pyspark.sql.functions import *
from pyspark.sql import functions as F
#SparkContext available as sc, HiveContext available as sqlContext.
@searchs
searchs / Spark Dataframe Cheat Sheet.py
Created September 14, 2018 09:51 — forked from crawles/Spark Dataframe Cheat Sheet.py
Cheat sheet for Spark Dataframes (using Python)
# A simple cheat sheet of Spark Dataframe syntax
# Current for Spark 1.6.1
# import statements
from pyspark.sql import SQLContext
from pyspark.sql.types import *
from pyspark.sql.functions import *
#creating dataframes
df = sqlContext.createDataFrame([(1, 4), (2, 5), (3, 6)], ["A", "B"]) # from manual data