Skip to content

Instantly share code, notes, and snippets.

View CodexLink's full-sized avatar
🏢
Busy on personal + on-site work.

Janrey Licas CodexLink

🏢
Busy on personal + on-site work.
View GitHub Profile
@hsercanatli
hsercanatli / .travis.yml
Last active November 12, 2019 02:41
Qt5 and PyQt5 v5.7 installation for Python 2.7 to Travis-ci
sudo: required
dist: trusty
language: python
python:
- 2.7_with_system_site_packages # For importing PyQt5 in virtual environment
before_install:
@pudelosha
pudelosha / PlantMoistureSensor.ino
Last active March 14, 2023 12:06
Arduino ESP8266 WiFi MySQL database connection with INSERT SQL command
//#include <DHT.h>
#include <MySQL_Connection.h>
#include <MySQL_Cursor.h>
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#define sensorPin1 0
//#define sensorPin2 D2
//#define typeDHT DHT11
@ChrisACarpenter
ChrisACarpenter / yt2d.md
Created January 7, 2017 15:26
Another webhook tutorial (YouTube to Discord via IFTTT)

Navigate to: Twitter via IFTTT, Twitter via Zapier, Reddit or GitHub.

YouTube to Discord via IFTTT and webhook

You just posted a video. You want everyone in your server to know this, eh?

I'll just start from Step 3. You know where Step 1 and Step 2 is, eh?

Step 1 - Register on IFTTT

  1. Go to https://ifttt.com/ and create an account (if you don't already have one).
@NullVoxPopuli
NullVoxPopuli / angular-pls.md
Last active July 9, 2020 08:12
Anti Patterns (and things I don't like) in Angular2

General

Templates written a giant string in components.

This tutorial demonstrates this: https://angular.io/docs/ts/latest/tutorial/toh-pt1.html you don't get syntax coloring, or any benefits you'd get from a good html/templating tool.

(( flashbacks to inline html strings in C++ ))

Tag bloat with ngDirectives (such as ngFor)

from an angular.io example:

@kn9ts
kn9ts / GPLv3.md
Last active April 5, 2025 10:25
GPLv3 explained

GPL3 LICENSE SYNOPSIS

TL;DR* Here's what the license entails:

1. Anyone can copy, modify and distribute this software.
2. You have to include the license and copyright notice with each and every distribution.
3. You can use this software privately.
4. You can use this software for commercial purposes.
5. If you dare build your business solely from this code, you risk open-sourcing the whole code base.
@patkub
patkub / materialize_masonry_fix.js
Last active June 14, 2018 06:56
Make masonry compatible with materializecss' material box. Masonry requires imagesLoaded.
var msnry, openIMG;
imagesLoaded(grid, function() {
// init Isotope after all images have loaded
var $container = $('#grid').masonry({
itemSelector: '.grid-item',
columnWidth: '.grid-sizer',
percentPosition: true
});
@tnhu
tnhu / excel_generator.py
Created April 22, 2016 20:38
Open and Edit an Excel template using Python's openpyxl library
from openpyxl import load_workbook
wb = load_workbook('template.xlsx')
# grab the active worksheet
ws = wb.active
# Data can be assigned directly to cells
ws['A2'] = 'Tom'
ws['B2'] = 30
@kefir-
kefir- / cv2showimage.py
Last active July 26, 2023 05:00
Python cv2 show image in window with correct size
#!/usr/bin/env python
import cv2
c = cv2.imread('ketil.jpg')
height, width = c.shape[:2]
cv2.namedWindow('jpg', cv2.WINDOW_NORMAL)
cv2.resizeWindow('jpg', width, height)
cv2.imshow('jpg', c)
r = cv2.waitKey(0)
print "DEBUG: waitKey returned:", chr(r)
cv2.destroyAllWindows()
@vasanthk
vasanthk / System Design.md
Last active April 19, 2025 20:36
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@john212
john212 / section4_lecture37_to_39_keypad_to_16x2_LCS_I2C_plus_RTC.ino
Created January 23, 2016 21:39
Multiple I2C Devices With Arduino Uno
/**************************************************
Udemy Arduino Step-by-Step Course
Section 4 Displays Lecture 37 to 39
Using 16x2 LCD With I2C Plus a Real Time Clock
by J. Cantlin
January 23, 2016
***************************************************/
/**************************************************
Summary of Arduino Analog Pins Used: