Related tutorial: http://cd64.de/mysql-cli
SQL joins infografic: http://cd64.de/sql-joins
| import datetime | |
| current =datetime.datetime.today().year #Current year | |
| userchoice=1 | |
| name=input("Enter your name") | |
| while(userchoice==1): | |
| age=int(input("Enter your age")) | |
| hundredthYear=current+(100-age) | |
| print ("You will turn 100 in" + str(hundredthYear)) |
| from math import * | |
| class Complex(object): | |
| def __init__(self,real,imag): | |
| self.r=float(real) | |
| self.i=float(imag) | |
| def add(self,first,second): | |
| c.r=first.r+second.r | |
| c.i=first.i+second.i |
Related tutorial: http://cd64.de/mysql-cli
SQL joins infografic: http://cd64.de/sql-joins
| { | |
| "cells": [ | |
| { | |
| "cell_type": "code", | |
| "execution_count": 1, | |
| "metadata": { | |
| "collapsed": true | |
| }, | |
| "outputs": [], | |
| "source": [ |
| $ npm install -g bower | |
| $ npm install -g grunt-cli | |
| $ npm install -g yo | |
| $ npm install -g generator-meanjs | |
| $ yo meanjs | |
| $ grunt | |
| Other generators for Angular , Express here : http://meanjs.org/generator.html |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Working_with_Objects#Defining_getters_and_setters | |
| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/get | |
| var log = ['test']; | |
| var obj = { | |
| get latest () { | |
| if (log.length == 0) return undefined; | |
| return log[log.length - 1] | |
| } | |
| } | |
| console.log (obj.latest); // Will return "test". |
| express project | |
| bootstrap ui | |
| fix angular routes and add templates | |
| $routeprovider | |
| $locationprovider | |
| create templates(views for all routes) | |
| add a service api.js | |
| $resource | |
| database schemas | |
| events |
| #color schemes | |
| ''' | |
| Terminal | |
| - [ ] fish , oh my fish | |
| - [ ] tmux | |
| - [ ] color scheme | |
| Text Editors | |
| - [ ] atom | |
| - [ ] sublime text |
| import java.util.Scanner; | |
| import java.util.ArrayList; | |
| public class hello { | |
| public static void main(String[] args) throws Exception | |
| { | |
| Scanner reader = new Scanner(System.in); |