Tag: Code
-
GitHub gitignore files for all
Whenever I start a project I always think to myself, “What the heck do I ignore?” Sometimes it’s easy to discern. However, sometimes it’s not. For example, the past week or so I’ve been dabbling with Swift. I had no prior knowledge of Ios development and had no idea what should be exposed or not.…
-
Edit Github Author For Past Commits
So a whiles back I was working on a project on my new laptop. However, I totally forgot to set the Github username and email. This meant that all the authors on my commits were not recognized as me. Luckily, Github always has a solution. First, clone your repository. Then, do the below. After you…
-
(Swift) UIImage to Base64
I recently had a project where I needed to convert my image to base64. With JavaScript it’s relatively easy and since I was new to Swift I had no idea how to do this. Below, I obtain my image as a UIImage, then convert it into NSData, and then into base64. You can use http://codebeautify.org/base64-to-image-converter to test the…
-
Looping Through Files
So the other day I needed to loop though some files that included a specific string. This is how I went through my files and rename it.
-
Sublime User Preferences
I don’t like to customize my Sublime (or anything else, really) very much but when I do I blog about it. Just in case I forget.
-
New Laptop Installfest
So I recently purchased a laptop, and you know what, it’s the first laptop that I’ve every really owned. It’s not a “hand-me-down”. Not a loaner. It’s a laptop that I purchased with my own money! Yay, I’m #adulting! Anyway, the reason why I decided to buy a personal laptop was because of some side…