Python Learning: Automate Boring Stuff with Python | Chapter 8 : My Solution to Practice Project: Deleting Unneeded Files

Personally, one of the simplest projects yet This code (when properly indented) helps to list out all files with a size greater than the given limit.   # Usage python limit in MB import sys import os if len(sys.argv) >= 2: limit = sys.argv[1] if len(sys.argv) == 3: source = sys.argv[2] else: source = […]

Python Learning: Automate Boring Stuff with Python | Chapter 8 : My Solution to Practice Project: Selective Copy

As usual… super simple automation.. I know it is quite trivial, but the fact that with a few lines of code I could re-organize my files based on their extensions makes coding really fun even outside of work. Code # selective copy # walks through a folder tree and searches for files with a certain […]

Python Learning: Automate Boring Stuff with Python | Chapter 8 : My Solution to Project: Backing Up a Folder into a Zip File

Just my solution to the project I found the solution to the project provided in the book really good, but it zipped the entire folder structure in the absolute path. Something I am not pleased with. By adding the filepath base name to the zipfile.Zipfile.write() function, after the absolute file path (of the file to […]

Python Learning: Automate Boring Stuff with Python | Making a directory and moving files into it

With this script we can make a new directory and move files with a given ending into the directory. This was not a task in the book, but just something I thought of solving. Quite interesting to know what you could do with string operations like “startWith” and “endWith”. # creates new directory and moves […]

What I learned today | Functional Js | Higher Order Functions – Chapter 4

If you came all the way from part 1, you should get the book: Functional JavaScript In the last post, we learned about Closures and Scopes. Today, we are addressing Higher Order Functions – Let’s do this! Higher Order Function A first-class function takes a function as an argument returns a function as a result […]

What I learned today | Functional Javascript: Variables Scope and Closures

Remember the Book: Functional JavaScript   So chapter 3 right?…hm Scopes From my understanding, where a variable lives, while the extent of a scope means how long a variable holds a value. Global Scope This has the longest lifespan when you declare a variable without the var, you are defining a global variable (accessible to […]

What I learned today | Functional Javascript | Chapter 2 | First-Class Functions and Applicative Programming

Hey!! you missed me ? no..okay .. so chapter 2 First Class Functions According to the author, I quote, “the term first class means that soething is just a value. Is one that can go anywhere that any other value can go”. Therefore a first class function is as shown below: var number = function(){return […]

What I learned today | Functional Programming in JavaScript | Chapter 1

In my most recent Coding Blog Post I briefed on what I learned while reading the Book “DOM Enlightment“. The book improved my knowledge of DOM transversing, specific and list selection, style manipulation  etc. This time I have decided on reading the book “Functional JavaScript” by Michael Fogus. I hope to prevent redundancy in my […]

Interesting ways to manipulate the DOM using (vanilla) JavaScript Part 2

Hope you found the part 1 helpful.. Okay, let’s begin… Styling style property to access a specific style property e.g. border-width, use or for background-color backgroundColor. getProperty, setProperty, removeProperty methods get – takes in only one argument; returns the value of that property e.g. selection.getProperty(“background-color”) set – updates the value of a specific property; […]

Interesting ways to manipulate the DOM using (vanilla) JavaScript (Part 1)

Part 2 is up! So I am at the moment reading the book “DOM Enlightment“, a really good book, and I thought to myself  “Hmm.. why dont you blog about what you are learning form this book?”. So yea, hope you can get something out of this. Remember this, HTML is a tree  made up […]

Javascript – Scope

Scope the life-time of a variable; Global scope – variables declared without a (var) are in the global scope. Their life time is the longest. They are also easy to mutate at any time, thus you should take extra care when declaring variables in the global scope. Lexical scope – defines the visibility of the […]

Learning Redux and React.js

So I just recently started (few hours ago)  studying about Redux and I am already excited. It seems interesting but a learning curve.  I am currently watching Dan Abramov tutorials, recommendable.  In the projects I plan on starting next year, I will have to have  an organized file and logic structure and I feel Redux […]

Learning How to Build a Simple Image Progressive Web App with Service Workers

So no longer native apps eh….. sorry I was joking..chill.. So I was minding my own business on medium just looking through Addy’s Posts and low and behold “Progressive Web Apps“popped up! Progressive web apps is not A  SPECIAL kind of app, just one that is available offline…. and “loads” just as fast as native […]

Menu Icon with Transition without JS

  the Video / Tutorial