Skip to content

Instantly share code, notes, and snippets.

@TeckniX
TeckniX / lvgl-course.md
Last active August 17, 2025 22:49
An LVGL semi-tutorial based on Gemini recommendations

Phase 1: The Free Exploration (Weeks 1-2) 💻

Key Tutorials & Videos:

  • Official LVGL Documentation: The official LVGL documentation is a goldmine. Pay special attention to the "Get Started" and "Quick overview" sections. The "Examples" page offers a wide variety of code snippets for every widget, which is perfect for this phase.
  • Video Series: LVGL for Beginners (on the LVGL Official YouTube Channel): The LVGL team has its own series. These are great for a foundational understanding directly from the source.
    • "LVGL - Quick Overview": A brief, but comprehensive introduction to the library's philosophy and features.
    • "LVGL - Hello World": A step-by-step video on creating your first project in the simulator. Follow along and write the code yourself.
References
@TeckniX
TeckniX / terminal.md
Created December 15, 2022 06:58
Magical MacOS terminal setup
@TeckniX
TeckniX / zshrc
Created May 26, 2016 04:22
Add color to the test
function gotest() {
go test -v . | sed ''/PASS/s//$(printf "\033[32mPASS\033[0m")/'' | sed ''/FAIL/s//$(printf "\033[31mFAIL\033[0m")/''
}
@TeckniX
TeckniX / patch-1
Created June 29, 2015 17:51
Ubuntu Parallel Patch
diff -Nru prl_fs.orig/SharedFolders/Guest/Linux/prl_fs/inode.c prl_fs/SharedFolders/Guest/Linux/prl_fs/inode.c
--- prl_fs.orig/SharedFolders/Guest/Linux/prl_fs/inode.c 2013-11-11 17:56:58.000000000 +0200
+++ prl_fs/SharedFolders/Guest/Linux/prl_fs/inode.c 2013-11-29 20:41:53.689167040 +0200
@@ -199,10 +199,18 @@
if (attr->valid & _PATTR_MODE)
inode->i_mode = (inode->i_mode & S_IFMT) | (attr->mode & 0777);
if ((attr->valid & _PATTR_UID) &&
- (sbi->plain || sbi->share || attr->uid == -1))
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0)
+ (sbi->plain || sbi->share || __kuid_val(attr->uid) == -1))
@TeckniX
TeckniX / gist:916a6e1d8d80928e8081
Last active August 29, 2015 14:23
Global require
// From https://scotch.io/tutorials/creating-a-simple-shopping-cart-with-react-js-and-flux
// global.js
var React = require('react');
var CartStore = require('../stores/CartStore');
var ProductStore = require('../stores/ProductStore');
var FluxProduct = require('./FluxProduct.react');
var FluxCart = require('./FluxCart.react');
// FluxCartApp.react.js
$ docker-machine -D env dev
...
STDERR:
Using SSH client type: external
About to run SSH command:
ip addr show dev eth1
&{/usr/bin/ssh [/usr/bin/ssh -o PasswordAuthentication=no -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -i /Users/Awesome/.docker/machine/machines/dev/id_rsa -p 53207 docker@localhost ip addr show dev eth1] [] <nil> <nil> <nil> [] <nil> <nil> <nil> ?reflect.Value? false [] [] [] [] <nil>}
SSH cmd err, output: <nil>: 4: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 08:00:27:92:f2:11 brd ff:ff:ff:ff:ff:ff
inet 192.168.99.100/24 brd 192.168.99.255 scope global eth1
@TeckniX
TeckniX / gist:0711b2a55c05e593a2b9
Last active August 29, 2015 14:23
Rails 4.2.2

Updated rails to the latest 4.2.2 Created new rails project: rails new myproject

Go into the dir: cd myproject

Start a webserver: rails server

@TeckniX
TeckniX / gist:ee19038a61b40dfb966e
Created May 19, 2015 16:23
CakePHP frustration
// Model Definition
App::uses('Model', 'Model');
class AppModel extends Model {
public $someVar = "This is a string variable ";
public function someMethod() {
echo $this->someVar;
}
}
@TeckniX
TeckniX / gist:27e90cab5206cfb95ecc
Last active August 29, 2015 14:19
CakePHP HtmlHelper issue?
http://book.cakephp.org/2.0/en/core-libraries/helpers/html.html#HtmlHelper::meta
From the Book example we have:
<?php
echo $this->Html->meta(
'favicon.ico',
'/favicon.ico',
array('type' => 'icon')
);
@TeckniX
TeckniX / FL_insurance_sample
Created April 3, 2015 17:47
Sample CSV file
policyID,statecode,county,eq_site_limit,hu_site_limit,fl_site_limit,fr_site_limit,tiv_2011,tiv_2012,eq_site_deductible,hu_site_deductible,fl_site_deductible,fr_site_deductible,point_latitude,point_longitude,line,construction,point_granularity
119736,FL,CLAY COUNTY,498960,498960,498960,498960,498960,792148.9,0,9979.2,0,0,30.102261,-81.711777,Residential,Masonry,1
448094,FL,CLAY COUNTY,1322376.3,1322376.3,1322376.3,1322376.3,1322376.3,1438163.57,0,0,0,0,30.063936,-81.707664,Residential,Masonry,3
206893,FL,CLAY COUNTY,190724.4,190724.4,190724.4,190724.4,190724.4,192476.78,0,0,0,0,30.089579,-81.700455,Residential,Wood,1
333743,FL,CLAY COUNTY,0,79520.76,0,0,79520.76,86854.48,0,0,0,0,30.063236,-81.707703,Residential,Wood,3
172534,FL,CLAY COUNTY,0,254281.5,0,254281.5,254281.5,246144.49,0,0,0,0,30.060614,-81.702675,Residential,Wood,1
785275,FL,CLAY COUNTY,0,515035.62,0,0,515035.62,884419.17,0,0,0,0,30.063236,-81.707703,Residential,Masonry,3
995932,FL,CLAY COUNTY,0,19260000,0,0,19260000,20610000,0,0,0,0,30.102226,-81.