| #include <iostream> | |
| #include <iomanip> | |
| using namespace std; | |
| using std::cout; | |
| using std::cin; | |
| using std::endl; | |
| const int BOARD_SIZE = 9; //3x3 tic-tac-toe board |
A Pen by pauldariye on CodePen.
Learn how to make applications using the autogenerator tools of Xcode. These are things like storyboards and the Xcode generators like the master-details template. Inevitably this will be an application that uses a UITableView and then some sort of detail view with some buttons. Understand how connecting UI elements with the IBActions and instance variables works.
On this very regular day,
I was just skimming the web as I infrequently do :) and came across this article by fast company. I just recently got serious about programming so I'm still in that early stage of easy distractions and child-like concentration spans. Well I've tried all sorts of music, maybe not all though, and none seem to work at keeping my mind at bay. Found a great playlist in the comment by LENA ELCHAMAA . Enjoy and maybe share your own playlists. I hope I can have a listen to all
Gist inspired by post fast company
| #!/usr/bin/env python | |
| # saved to ~/bin/batcharge.py and from | |
| # http://stevelosh.com/blog/2010/02/my-extravagant-zsh-prompt/#my-right-prompt-battery-capacity | |
| #!/usr/bin/env python | |
| # coding=UTF-8 | |
| import math, subprocess | |
| p = subprocess.Popen(["ioreg", "-rc", "AppleSmartBattery"], stdout=subprocess.PIPE) | |
| output = p.communicate()[0] |
A Pen by pauldariye on CodePen.
| # source: http://stackoverflow.com/questions/7244321/how-to-update-a-github-forked-repository | |
| # Add the remote, call it "upstream": | |
| git remote add upstream https://github.com/whoever/whatever.git | |
| # Fetch all the branches of that remote into remote-tracking branches, | |
| # such as upstream/master: | |
| git fetch upstream |
| //Inspired by http://g-liu.com/blog/2013/08/tutorial-basic-carouselslideshow-with-javascript/ | |
| var SimpleCarousel = function(id, options){ | |
| this.id = id || 'slides'; // default id -> #slides | |
| this.class = options.class || 'slide'; // default child class -> .slide | |
| this.w = options.width; | |
| this.h = options.height; | |
| this.duration = options.duration || 4000; // default 4s | |
| this.container = document.getElementById(this.id); |