From 01bed803912cb286eee1066643ba4d1a5af4c122 Mon Sep 17 00:00:00 2001 From: Bucky Roberts Date: Sat, 18 Jul 2015 00:48:42 -0400 Subject: [PATCH 01/35] Added sample MySQL database. --- .gitignore | 6 + Other/SampleMySQLData/store.sql | 238 ++++++++++++++++++++++++++++++++ 2 files changed, 244 insertions(+) create mode 100644 .gitignore create mode 100644 Other/SampleMySQLData/store.sql diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..162a568 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +.idea/.name +.idea/compiler.xml +.idea/dictionaries/Bucky.xml +*.iml +.idea/misc.xml +*.xml \ No newline at end of file diff --git a/Other/SampleMySQLData/store.sql b/Other/SampleMySQLData/store.sql new file mode 100644 index 0000000..df668ab --- /dev/null +++ b/Other/SampleMySQLData/store.sql @@ -0,0 +1,238 @@ +SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; +SET time_zone = "+00:00"; + +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; +/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; +/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; +/*!40101 SET NAMES utf8 */; + +CREATE DATABASE IF NOT EXISTS `store` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci; +USE `store`; + +CREATE TABLE IF NOT EXISTS `customers` ( + `id` int(11) NOT NULL, + `name` varchar(60) COLLATE utf8_unicode_ci NOT NULL, + `address` varchar(60) COLLATE utf8_unicode_ci NOT NULL, + `city` varchar(30) COLLATE utf8_unicode_ci NOT NULL, + `state` varchar(10) COLLATE utf8_unicode_ci NOT NULL, + `zip` int(11) NOT NULL +) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; + +INSERT INTO `customers` (`id`, `name`, `address`, `city`, `state`, `zip`) VALUES +(1, 'Bucky Roberts', '32 Hungerford Ave', 'Adams', 'NY', 13605), +(2, 'Noah Parker', '342 Tunafish Lane', 'Raleigh', 'NC', 27606), +(3, 'Kelsey Burger', '43 Crab Orchard Dr', 'Oakland', 'CA', 90210), +(4, 'Corey Smith', '423 Wisteria Lane', 'Simmersville', 'AK', 54112), +(5, 'Harry Potter', '673 Greenwich Ave', 'Newark', 'NJ', 80432), +(6, 'Henry Jackson', '2134 Grant St', 'Gary', 'IN', 47404), +(7, 'Cynthia Alvarez', '1568 Greenfield Ave', 'Augusta', 'GA', 30568), +(8, 'Teresa Smith', '8725 Black St', 'Philadelphia', 'PA', 19603), +(9, 'Gary Foster', '3752 Wittfield Blvd', 'Indianapolis', 'IN', 46219), +(10, 'Sherry Gibbons', '5517 Oak St', 'Phoenix', 'AZ', 85072), +(11, 'Jack Nicholson', '1234 Star Lane', 'Hollywood', 'CA', 90210), +(12, 'Penny Green', '4972 Massachusetts Ave', 'Orlando', 'FL', 33718), +(13, 'Alexander Evans', '6310 E 21st Rd', 'Las Vegas', 'NV', 83594), +(14, 'Jeremy White', '3954 Brentwood Dr', 'Seattle', 'WA', 99037), +(15, 'Omar Badshah', '6801 Regina Cir', 'Madison', 'WI', 53209), +(16, 'Preston Harrison', '104 Main St', 'Denver', 'CO', 81712), +(17, 'Manuel Rodriguez', '99543 Westin Blvd', 'Provo', 'UT', 85478), +(18, 'David Jones', '5488 W 34th St', 'Boston', 'MA', 2104), +(19, 'Nick Flanders', '3486 Happy Trails Dr', 'Springfield', 'OH', 45872), +(20, 'Paul Brown', '3290 Pennsylvania Ave', 'Chicago', 'IL', 61208), +(21, 'Sara Rehm', '7746 Wysong Ave', 'Detroit', 'MI', 48913), +(22, 'Haley Carter', '2957 Princess Way', 'Portland', 'OR', 97532), +(23, 'Julian Thomas', '5564 Dandy Trail', 'Santa Fe', 'NM', 81543), +(24, 'George Lucas', '8224 Star Wars Ln', 'Galaxy', 'TN', 37512), +(25, 'Perry Jordan', '4321 Victory Rd', 'Montgomery', 'AL', 33219), +(26, 'Christopher Layton', '871 Georgia Pl', 'Houston', 'TX', 78704), +(27, 'Devon Myers', '9932 Carmel Dr', 'New York', 'NY', 11920), +(28, 'Debra Talkington', '8421 Smithfield Ave', 'Mesa', 'AZ', 82573), +(29, 'Peter Johnson', '4213 Jones Pkwy', 'Missoula', 'MS', 37228), +(30, 'Harry Brown', '125 Cinnamon Way', 'Raleigh', 'NC', 27418), +(31, 'Kay Billings', '4592 Jessica Ave', 'Cincinnati', 'OH', 43118), +(32, 'Desmond Rafferty', '6329 Jordan St', 'San Diego', 'CA', 93980), +(33, 'Lisa Washington', '3490 Dearborn Ave', 'Boise', 'ID', 84930), +(34, 'Jackson Taylor', '7733 Miami Way', 'Atlanta', 'GA', 37544), +(35, 'Michael Davis', '9245 Olney Ave', 'Eau Claire', 'WI', 54732), +(36, 'Candice Thompson', '3122 Ebony Blvd', 'Memphis', 'TN', 33152), +(37, 'Terry Mitchell', '7438 Tacoma St', 'Spokane', 'WA', 99753), +(38, 'Ruth Bolen', '5584 Frigid Ln', 'Anchorage', 'AK', 99831), +(39, 'James Hamilton', '449 Routiers Ave', 'Ft Lauderdale', 'FL', 33912), +(40, 'Harvey Akins', '7950 Ridge Rd', 'Newark', 'NJ', 2753), +(41, 'Timothy Smothers', '5892 Maple Ave', 'Washington', 'DC', 213), +(42, 'Stephanie Nichols', '2275 Apple St', 'Highland', 'MI', 49003), +(43, 'Ken Davidson', '1583 N 27th Rd', 'Dallas', 'TX', 78432), +(44, 'Angel Martin', '3195 Mapleton Ave', 'Providence', 'RI', 8132), +(45, 'Cathy Douglas', '8934 Glory St', 'Boulder', 'CO', 89578), +(46, 'Kendall Norton', '8733 Jordan Ave', 'Kansas City', 'KS', 66555), +(47, 'Desire Morton', '2138 Peaches Way', 'Ellettsville', 'IL', 67330), +(48, 'Patty Zrock', '7397 Happy St', 'Brooklyn', 'NY', 13420), +(49, 'Evan Bayh', '6613 North St', 'Miami', 'FL', 33990), +(50, 'Kevin Masters', '91350 Carmel Dr', 'Brisket', 'WY', 80154), +(51, 'Paula Barker', '6528 Prozac Ave', 'San Francisco', 'CA', 92953), +(52, 'John Jacobs', '2957 Ashway Ct', 'Pittsburgh', 'PA', 18320), +(53, 'Dana Brunswick', '4825 Polly Ln', 'Las Vegas', 'NV', 89223), +(54, 'David Turner', '743 Main St', 'Knoxville', 'TN', 37710), +(55, 'Michael Orlando', '1355 Joseph Way', 'Pensacola', 'FL', 31552), +(56, 'Terry Green', '6320 LaSalle St', 'Yazoo', 'MS', 30428), +(57, 'Greg Evans', '2294 South St', 'Indianapolis', 'IN', 46203), +(58, 'Sandy Johnson', '5319 Brentwood Dr', 'Louisville', 'KY', 41350), +(59, 'Charlie Jones', '5382 Miracle Ln', 'New Orleans', 'LA', 73210), +(60, 'Kevin Grier', '855 Henry St', 'Provo', 'UT', 83111), +(61, 'Lani Kulana', '3352 Hibiscus Ln', 'Honolulu', 'HI', 93525), +(62, 'Mary Worley', '4291 Cherry St', 'Oaktown', 'NH', 5308), +(63, 'Tanya Gleason', '7315 Franklin Rd', 'Peoria', 'IL', 66514), +(64, 'Donna Bradley', '2753 Florida Way', 'San Jose', 'CA', 91342), +(65, 'Jimmy Lawson', '9 Corporate Dr', 'Excelsior', 'GA', 37833), +(66, 'Brenda Fowler', '8447 Jackson Pl', 'St Louis', 'MO', 63153), +(67, 'Karen Mills', '9077 Cumberland Way', 'Tulsa', 'OK', 74319), +(68, 'Aretha Gordon', '1489 Pumpkin Ave', 'Appleton', 'WI', 54310), +(69, 'Carol Brown', '6225 Tamiami Trl', 'Ft Myers', 'FL', 33914), +(70, 'Jerry Freeman', '7840 Princess Dr', 'Topeka', 'KS', 63330), +(71, 'LuAnn Dennis', '5602 Norman St', 'Philadelphia', 'PA', 17569), +(72, 'Thomas Jackson', '3958 Breen Ave', 'Mobile', 'AL', 34558), +(73, 'Marilyn Pritchett', '1468 Duncan St', 'Trenton', 'NJ', 7104), +(74, 'Katherine Cain', '4388 Drysdale Ln', 'Texarkana', 'AR', 77315), +(75, 'Patsy Cline', '9926 Hemingway Blvd', 'Tuscaloosa', 'CA', 97221), +(76, 'Kerry Jackson', '5533 Penelope St', 'Beaverton', 'OR', 91353), +(77, 'Princess Wilson', '3127 Spencer Dr', 'Norton', 'sC', 27384), +(78, 'Henry Fisk', '6341 Wilmington Ave', 'Lincoln', 'NE', 70011), +(79, 'Jessica Grant', '2203 Pansy Ln', 'Butte', 'MT', 54438), +(80, 'Joe Franklin', '1078 Dusky Dr', 'Independence', 'IN', 46935), +(81, 'Larry Hood', '3522 Potter St', 'Marietta', 'GA', 37023), +(82, 'Jim OBrien', '6084 Maple St', 'Boston', 'MA', 1358), +(83, 'Tanya Hicks', '1487 Potter St', 'Orlando', 'FL', 34258), +(84, 'Dean Williams', '2279 Gray St', 'Roanoke', 'VA', 27384), +(85, 'Jason Freeman', '4301 Perry Ave', 'Lincoln', 'NE', 67301), +(86, 'Katy Smith', '8733 Johnson Way', 'Santa Fe', 'NM', 80227), +(87, 'Andy Jones', '5177 US 42 S', 'Paragon', 'MI', 48203), +(88, 'Crystal Jarvis', '9028 Indiana Ave', 'Tuscaloosa', 'AL', 32784), +(89, 'Elizabeth McMurray', '730 Walnut St', 'Mooresville', 'WI', 53802), +(90, 'Cassandra Tansy', '1209 Broadway St', 'Bloomington', 'IN', 46801), +(91, 'Dick Moore', '3209 Simpson Rd', 'New York', 'NY', 10220), +(92, 'Marisa Rodriguez', '873 Olney Ave', 'Muncie', 'VA', 20384), +(93, 'Tyrone Jackson', '7725 Georgia St', 'Salt Lake City', 'UT', 82004), +(94, 'Donald Gray', '8339 Olivia St', 'Champaign', 'IL', 60337), +(95, 'Victoria Jameson', '2804 Oak Tree St', 'Salina', 'KS', 67905), +(96, 'Lucy Bronson', '5336 Michigan Ave', 'Wilmington', 'DE', 1903); + +CREATE TABLE IF NOT EXISTS `items` ( + `id` int(11) NOT NULL, + `name` varchar(65) COLLATE utf8_unicode_ci NOT NULL, + `cost` float NOT NULL, + `seller_id` int(11) NOT NULL, + `bids` int(11) NOT NULL +) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; + +INSERT INTO `items` (`id`, `name`, `cost`, `seller_id`, `bids`) VALUES +(1, 'Brand New iMac Computer', 149.99, 32, 3), +(2, 'used diaper from my sister', 2.04, 1, 0), +(3, 'Fresh apple pie', 14.99, 54, 32), +(4, 'New gym socks', 2.34, 90, 566), +(5, 'Weedwacker only slightly used', 4.56, 84, 2), +(6, 'New ipad stolen from best buy', 399, 32, 23), +(7, 'Book about having babies', 21.34, 44, 21), +(8, 'Woman Jeans', 49.5, 56, 123), +(9, 'traditional carpet', 25.45, 14, 75), +(10, '3 boxes of frogs', 30.49, 68, 145), +(11, '48 boxes of frogs', 74.29, 6, 99), +(12, '7 boxes of frogs', 857.75, 18, 88), +(13, 'laptop', 743.3, 89, 158), +(14, 'thumbelina', 228.05, 15, 49), +(15, 'bed', 127.15, 65, 189), +(16, 'shampoing', 12.8, 6, 105), +(17, 'stove', 37.66, 68, 111), +(18, 'cushion', 7.15, 97, 157), +(19, 'refrigerator', 657.49, 61, 129), +(20, 'gold necklace', 853.07, 10, 101), +(21, 'pan', 33.7, 7, 184), +(22, 'awesome alien computer game', 10.75, 18, 29), +(23, 'baby coat', 89.99, 14, 47), +(24, 'baby seat', 145.78, 2, 199), +(25, 'satchel', 44.71, 15, 66), +(26, 'women perfum', 110.9, 48, 84), +(27, 'conveyor belt', 1120.75, 11, 4), +(28, 'used car', 5700.5, 12, 135), +(29, 'supercomputer', 49.75, 50, 176), +(30, 'mirror', 26.8, 19, 56), +(31, 'piano', 1800.4, 13, 147), +(32, 'quitar', 88.4, 25, 164), +(33, 'trumpet', 255.15, 36, 23), +(34, 'machintosh', 3845, 20, 107), +(35, 'earphone', 10.5, 17, 110), +(36, 'computer', 418, 11, 152), +(37, 'night light', 13.87, 97, 198), +(38, 'pc bag', 50.99, 48, 65), +(39, 'babyfoot', 376.7, 2, 121), +(40, 'hairdryer', 88.9, 12, 177), +(41, 'babyliss', 130.75, 68, 79), +(42, 'door', 150.5, 98, 13), +(43, 'baby soap', 12.7, 4, 198), +(44, 'used phone', 43.75, 9, 69), +(45, 'bath', 757.15, 96, 55), +(46, 'flower', 10.75, 16, 89), +(47, 'battery charger', 48.75, 25, 87), +(48, 'air conditioner', 975, 12, 151), +(49, 'casserole', 115.75, 46, 35), +(50, 'used toilet', 180.7, 64, 11), +(51, 'teashirt', 14.98, 65, 114), +(52, 'moto', 920, 22, 174), +(53, 'saxophone', 220.9, 60, 140), +(54, 'bicycle', 180.55, 97, 35), +(55, 'man perfum', 95, 75, 199), +(56, 'table', 157.25, 91, 48), +(57, 'boat', 4890.5, 17, 177), +(58, 'iphone', 547, 8, 28), +(59, 'body milk', 50.5, 16, 90), +(60, 'new curtain for bedroom', 278.4, 92, 11), +(61, 'diamond ring', 1900, 15, 45), +(62, 'swept', 4.5, 9, 99), +(63, 'women hat', 17.55, 39, 60), +(64, 'washing machine', 680.9, 42, 125), +(65, 'baby bottle', 27.98, 91, 117), +(66, 'women sun glasses', 66.7, 18, 174), +(67, 'person weighs', 65.25, 10, 100), +(68, 'photo frame', 18, 85, 170), +(69, 'key board', 16.7, 90, 101), +(70, 'screen', 250, 81, 188), +(71, 'bucket', 2.5, 1, 19), +(72, 'lipstick', 24.75, 3, 44), +(73, 'wardrobe', 120.75, 9, 71), +(74, 'blue dress size 40', 88.9, 7, 113), +(75, 'newspaper', 1.5, 95, 172), +(76, 'scanner', 350, 14, 62), +(77, 'camera', 550.7, 17, 95), +(78, 'camcorder', 788.99, 25, 127), +(79, 'gun', 420.1, 81, 107), +(80, 'domestic dog', 200, 19, 129), +(81, 'horse', 759.5, 30, 115), +(82, 'truck', 7800.5, 32, 123), +(83, 'soccer ball', 95.49, 54, 155), +(84, 'gold earring', 385, 75, 92), +(85, 'basket', 250.45, 46, 142), +(86, 'bikini', 85.2, 12, 57), +(87, 'red skirt', 15.9, 18, 188), +(88, 'copier machine', 800.7, 50, 160), +(89, 'handbag', 35.9, 8, 108), +(90, 'bath towel', 25.1, 11, 186), +(91, 'coffee machine', 210.89, 15, 170), +(92, 'wedding dress', 690, 26, 48), +(93, 'man sun glasses', 80.7, 19, 174), +(94, 'candle', 7.5, 22, 102), +(95, 'scarf', 11.9, 7, 143), +(96, 'microwave', 150.29, 6, 11), +(97, 'electric oven', 645, 62, 171), +(98, 'play station', 256.75, 12, 188), +(99, 'dvd', 126.84, 14, 113), +(100, 'magazine', 3.5, 8, 152); + + +ALTER TABLE `customers` + ADD PRIMARY KEY (`id`); + +ALTER TABLE `items` + ADD PRIMARY KEY (`id`); + +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; +/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; +/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; From 907935941e42e50d766268bd528f170fb40d44cc Mon Sep 17 00:00:00 2001 From: Bucky Roberts Date: Thu, 30 Jul 2015 12:54:09 -0400 Subject: [PATCH 02/35] Added Foundation source code. --- Foundation/002_gridSystem.html | 35 ++++++++++++++ Foundation/003_dynamicLayouts.html | 37 +++++++++++++++ Foundation/004_blockGrid.html | 40 ++++++++++++++++ Foundation/005_typography.html | 48 +++++++++++++++++++ Foundation/006_offCanvasSideMenu.html | 68 +++++++++++++++++++++++++++ 5 files changed, 228 insertions(+) create mode 100644 Foundation/002_gridSystem.html create mode 100644 Foundation/003_dynamicLayouts.html create mode 100644 Foundation/004_blockGrid.html create mode 100644 Foundation/005_typography.html create mode 100644 Foundation/006_offCanvasSideMenu.html diff --git a/Foundation/002_gridSystem.html b/Foundation/002_gridSystem.html new file mode 100644 index 0000000..2709243 --- /dev/null +++ b/Foundation/002_gridSystem.html @@ -0,0 +1,35 @@ + + + + + + + + thenewboston + + + + + + + +
+
4
+
6
+
2
+
+ +
+
6
+
6
+
+ + + + + + \ No newline at end of file diff --git a/Foundation/003_dynamicLayouts.html b/Foundation/003_dynamicLayouts.html new file mode 100644 index 0000000..86127ee --- /dev/null +++ b/Foundation/003_dynamicLayouts.html @@ -0,0 +1,37 @@ + + + + + + + + thenewboston + + + + + + + + + +
+ +
Left
+
Right
+ +
+ + + + + + diff --git a/Foundation/004_blockGrid.html b/Foundation/004_blockGrid.html new file mode 100644 index 0000000..7149e2d --- /dev/null +++ b/Foundation/004_blockGrid.html @@ -0,0 +1,40 @@ + + + + + + + + thenewboston + + + + + + + + +
+ +
    +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
+ +
+ + + + + + diff --git a/Foundation/005_typography.html b/Foundation/005_typography.html new file mode 100644 index 0000000..8951345 --- /dev/null +++ b/Foundation/005_typography.html @@ -0,0 +1,48 @@ + + + + + + + + thenewboston + + + + + + + + +
+
+ + + +
+ This is how you make quotes. + Bucky Roberts +
+ +

Labels

+

Hey can you go to the store and pickup cream cheese?

+ +

Keystrokes

+

To make your browser faster type Alt + F4

+ +
+
+ + + + + + diff --git a/Foundation/006_offCanvasSideMenu.html b/Foundation/006_offCanvasSideMenu.html new file mode 100644 index 0000000..9cf9785 --- /dev/null +++ b/Foundation/006_offCanvasSideMenu.html @@ -0,0 +1,68 @@ + + + + + + + + thenewboston + + + + + + + + +
+
+ + + Toggle Menu + + + + + +
+
Hey now dude
+
This is some sample content
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + From 287921d0dabd2596a8e8120289e27ce31feb0e3a Mon Sep 17 00:00:00 2001 From: Bucky Roberts Date: Thu, 30 Jul 2015 18:06:29 -0400 Subject: [PATCH 03/35] Foundation code added. --- Foundation/007_dualToggleMenuLayout.html | 69 +++++++++++++++++++++ Foundation/008_topNavigationBar.html | 61 ++++++++++++++++++ Foundation/009_topNavSearchAndLeftMenu.html | 40 ++++++++++++ Foundation/010_breadcrumbsAndAlerts.html | 55 ++++++++++++++++ 4 files changed, 225 insertions(+) create mode 100644 Foundation/007_dualToggleMenuLayout.html create mode 100644 Foundation/008_topNavigationBar.html create mode 100644 Foundation/009_topNavSearchAndLeftMenu.html create mode 100644 Foundation/010_breadcrumbsAndAlerts.html diff --git a/Foundation/007_dualToggleMenuLayout.html b/Foundation/007_dualToggleMenuLayout.html new file mode 100644 index 0000000..390839c --- /dev/null +++ b/Foundation/007_dualToggleMenuLayout.html @@ -0,0 +1,69 @@ + + + + + + + + thenewboston + + + + + + + + +
+
+ + + + + + + + + + + +
+

Bacon ipsum dolor amet pancetta prosciutto ball tip tri-tip tail salami. Tenderloin tongue ham leberkas. Filet mignon boudin doner kielbasa turducken flank ground round ham porchetta brisket t-bone alcatra venison jowl pastrami. Jerky prosciutto drumstick, ham hock beef hamburger brisket fatback alcatra pork belly rump. Shoulder frankfurter t-bone meatball, pork loin rump picanha.

+

Bacon ipsum dolor amet pancetta prosciutto ball tip tri-tip tail salami. Tenderloin tongue ham leberkas. Filet mignon boudin doner kielbasa turducken flank ground round ham porchetta brisket t-bone alcatra venison jowl pastrami. Jerky prosciutto drumstick, ham hock beef hamburger brisket fatback alcatra pork belly rump. Shoulder frankfurter t-bone meatball, pork loin rump picanha.

+

Bacon ipsum dolor amet pancetta prosciutto ball tip tri-tip tail salami. Tenderloin tongue ham leberkas. Filet mignon boudin doner kielbasa turducken flank ground round ham porchetta brisket t-bone alcatra venison jowl pastrami. Jerky prosciutto drumstick, ham hock beef hamburger brisket fatback alcatra pork belly rump. Shoulder frankfurter t-bone meatball, pork loin rump picanha.

+
+ + + +
+
+ + + + + + diff --git a/Foundation/008_topNavigationBar.html b/Foundation/008_topNavigationBar.html new file mode 100644 index 0000000..542830a --- /dev/null +++ b/Foundation/008_topNavigationBar.html @@ -0,0 +1,61 @@ + + + + + + + + thenewboston + + + + + + + + + + + + + + + diff --git a/Foundation/009_topNavSearchAndLeftMenu.html b/Foundation/009_topNavSearchAndLeftMenu.html new file mode 100644 index 0000000..7cb5513 --- /dev/null +++ b/Foundation/009_topNavSearchAndLeftMenu.html @@ -0,0 +1,40 @@ + + + + + + + + thenewboston + + + + + + + + +
+ + + +
Right side
+ +
+ + + + + + diff --git a/Foundation/010_breadcrumbsAndAlerts.html b/Foundation/010_breadcrumbsAndAlerts.html new file mode 100644 index 0000000..3f2847c --- /dev/null +++ b/Foundation/010_breadcrumbsAndAlerts.html @@ -0,0 +1,55 @@ + + + + + + + + thenewboston + + + + + + + + +
+
+ + + + +
+ Your message has been sent! + × +
+ + +
+ New high score! + × +
+ + +
+ Don't send nude pics to you ex! + × +
+ +
+
+ + + + + + From 845c82adce5f8ad6ebf9700dcffbd0c2fc69375b Mon Sep 17 00:00:00 2001 From: Bucky Roberts Date: Sun, 2 Aug 2015 14:02:42 -0400 Subject: [PATCH 04/35] React template. --- React/000_template.html | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 React/000_template.html diff --git a/React/000_template.html b/React/000_template.html new file mode 100644 index 0000000..7caf9cb --- /dev/null +++ b/React/000_template.html @@ -0,0 +1,29 @@ + + + + + thenewboston + + + + + + +
+ + + + + \ No newline at end of file From 69204d4b00a44e569daedfa068206247294c10bf Mon Sep 17 00:00:00 2001 From: Bucky Roberts Date: Sun, 2 Aug 2015 16:36:00 -0400 Subject: [PATCH 05/35] React source code. --- React/003_properties.html | 37 +++++++++++++++++++++++++++++++++++ React/004_children.html | 38 ++++++++++++++++++++++++++++++++++++ React/005_events.html | 41 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 116 insertions(+) create mode 100644 React/003_properties.html create mode 100644 React/004_children.html create mode 100644 React/005_events.html diff --git a/React/003_properties.html b/React/003_properties.html new file mode 100644 index 0000000..bd5d72a --- /dev/null +++ b/React/003_properties.html @@ -0,0 +1,37 @@ + + + + + thenewboston + + + + + + +
+ + + + + \ No newline at end of file diff --git a/React/004_children.html b/React/004_children.html new file mode 100644 index 0000000..ec8fa80 --- /dev/null +++ b/React/004_children.html @@ -0,0 +1,38 @@ + + + + + thenewboston + + + + + + +
+ + + + + \ No newline at end of file diff --git a/React/005_events.html b/React/005_events.html new file mode 100644 index 0000000..f7fa353 --- /dev/null +++ b/React/005_events.html @@ -0,0 +1,41 @@ + + + + + thenewboston + + + + + + +
+ + + + + \ No newline at end of file From 8c2d71c35ff5537634052179de8ca61a02e5541f Mon Sep 17 00:00:00 2001 From: Aybars Arslan Date: Sat, 26 Sep 2015 03:01:59 +0300 Subject: [PATCH 06/35] SQLite Sample Added Tutorial 49-54 --- Android_Beginners/SqQLiteSample/.gitignore | 6 + Android_Beginners/SqQLiteSample/.idea/.name | 1 + .../SqQLiteSample/.idea/compiler.xml | 23 +++ .../.idea/copyright/profiles_settings.xml | 3 + .../.idea/dictionaries/Aybars.xml | 3 + .../SqQLiteSample/.idea/encodings.xml | 5 + .../SqQLiteSample/.idea/gradle.xml | 18 ++ .../SqQLiteSample/.idea/misc.xml | 53 ++++++ .../SqQLiteSample/.idea/modules.xml | 10 ++ .../.idea/scopes/scope_settings.xml | 5 + Android_Beginners/SqQLiteSample/.idea/vcs.xml | 7 + .../SqQLiteSample/SqQLiteSample.iml | 19 ++ .../SqQLiteSample/app/.gitignore | 1 + Android_Beginners/SqQLiteSample/app/app.iml | 93 ++++++++++ .../SqQLiteSample/app/build.gradle | 25 +++ .../SqQLiteSample/app/proguard-rules.pro | 17 ++ .../arslan/sqqlitesample/ApplicationTest.java | 13 ++ .../app/src/main/AndroidManifest.xml | 21 +++ .../arslan/sqqlitesample/MainActivity.java | 61 +++++++ .../arslan/sqqlitesample/MyDBHandler.java | 76 ++++++++ .../aybars/arslan/sqqlitesample/Products.java | 34 ++++ .../app/src/main/res/layout/activity_main.xml | 49 ++++++ .../app/src/main/res/menu/menu_main.xml | 6 + .../src/main/res/mipmap-hdpi/ic_launcher.png | Bin 0 -> 3418 bytes .../src/main/res/mipmap-mdpi/ic_launcher.png | Bin 0 -> 2206 bytes .../src/main/res/mipmap-xhdpi/ic_launcher.png | Bin 0 -> 4842 bytes .../main/res/mipmap-xxhdpi/ic_launcher.png | Bin 0 -> 7718 bytes .../app/src/main/res/values-w820dp/dimens.xml | 6 + .../app/src/main/res/values/dimens.xml | 5 + .../app/src/main/res/values/strings.xml | 6 + .../app/src/main/res/values/styles.xml | 8 + Android_Beginners/SqQLiteSample/build.gradle | 19 ++ .../SqQLiteSample/gradle.properties | 18 ++ .../gradle/wrapper/gradle-wrapper.jar | Bin 0 -> 49896 bytes .../gradle/wrapper/gradle-wrapper.properties | 6 + Android_Beginners/SqQLiteSample/gradlew | 164 ++++++++++++++++++ Android_Beginners/SqQLiteSample/gradlew.bat | 90 ++++++++++ .../SqQLiteSample/settings.gradle | 1 + 38 files changed, 872 insertions(+) create mode 100644 Android_Beginners/SqQLiteSample/.gitignore create mode 100644 Android_Beginners/SqQLiteSample/.idea/.name create mode 100644 Android_Beginners/SqQLiteSample/.idea/compiler.xml create mode 100644 Android_Beginners/SqQLiteSample/.idea/copyright/profiles_settings.xml create mode 100644 Android_Beginners/SqQLiteSample/.idea/dictionaries/Aybars.xml create mode 100644 Android_Beginners/SqQLiteSample/.idea/encodings.xml create mode 100644 Android_Beginners/SqQLiteSample/.idea/gradle.xml create mode 100644 Android_Beginners/SqQLiteSample/.idea/misc.xml create mode 100644 Android_Beginners/SqQLiteSample/.idea/modules.xml create mode 100644 Android_Beginners/SqQLiteSample/.idea/scopes/scope_settings.xml create mode 100644 Android_Beginners/SqQLiteSample/.idea/vcs.xml create mode 100644 Android_Beginners/SqQLiteSample/SqQLiteSample.iml create mode 100644 Android_Beginners/SqQLiteSample/app/.gitignore create mode 100644 Android_Beginners/SqQLiteSample/app/app.iml create mode 100644 Android_Beginners/SqQLiteSample/app/build.gradle create mode 100644 Android_Beginners/SqQLiteSample/app/proguard-rules.pro create mode 100644 Android_Beginners/SqQLiteSample/app/src/androidTest/java/aybars/arslan/sqqlitesample/ApplicationTest.java create mode 100644 Android_Beginners/SqQLiteSample/app/src/main/AndroidManifest.xml create mode 100644 Android_Beginners/SqQLiteSample/app/src/main/java/aybars/arslan/sqqlitesample/MainActivity.java create mode 100644 Android_Beginners/SqQLiteSample/app/src/main/java/aybars/arslan/sqqlitesample/MyDBHandler.java create mode 100644 Android_Beginners/SqQLiteSample/app/src/main/java/aybars/arslan/sqqlitesample/Products.java create mode 100644 Android_Beginners/SqQLiteSample/app/src/main/res/layout/activity_main.xml create mode 100644 Android_Beginners/SqQLiteSample/app/src/main/res/menu/menu_main.xml create mode 100644 Android_Beginners/SqQLiteSample/app/src/main/res/mipmap-hdpi/ic_launcher.png create mode 100644 Android_Beginners/SqQLiteSample/app/src/main/res/mipmap-mdpi/ic_launcher.png create mode 100644 Android_Beginners/SqQLiteSample/app/src/main/res/mipmap-xhdpi/ic_launcher.png create mode 100644 Android_Beginners/SqQLiteSample/app/src/main/res/mipmap-xxhdpi/ic_launcher.png create mode 100644 Android_Beginners/SqQLiteSample/app/src/main/res/values-w820dp/dimens.xml create mode 100644 Android_Beginners/SqQLiteSample/app/src/main/res/values/dimens.xml create mode 100644 Android_Beginners/SqQLiteSample/app/src/main/res/values/strings.xml create mode 100644 Android_Beginners/SqQLiteSample/app/src/main/res/values/styles.xml create mode 100644 Android_Beginners/SqQLiteSample/build.gradle create mode 100644 Android_Beginners/SqQLiteSample/gradle.properties create mode 100644 Android_Beginners/SqQLiteSample/gradle/wrapper/gradle-wrapper.jar create mode 100644 Android_Beginners/SqQLiteSample/gradle/wrapper/gradle-wrapper.properties create mode 100644 Android_Beginners/SqQLiteSample/gradlew create mode 100644 Android_Beginners/SqQLiteSample/gradlew.bat create mode 100644 Android_Beginners/SqQLiteSample/settings.gradle diff --git a/Android_Beginners/SqQLiteSample/.gitignore b/Android_Beginners/SqQLiteSample/.gitignore new file mode 100644 index 0000000..afbdab3 --- /dev/null +++ b/Android_Beginners/SqQLiteSample/.gitignore @@ -0,0 +1,6 @@ +.gradle +/local.properties +/.idea/workspace.xml +/.idea/libraries +.DS_Store +/build diff --git a/Android_Beginners/SqQLiteSample/.idea/.name b/Android_Beginners/SqQLiteSample/.idea/.name new file mode 100644 index 0000000..47def64 --- /dev/null +++ b/Android_Beginners/SqQLiteSample/.idea/.name @@ -0,0 +1 @@ +SqQLiteSample \ No newline at end of file diff --git a/Android_Beginners/SqQLiteSample/.idea/compiler.xml b/Android_Beginners/SqQLiteSample/.idea/compiler.xml new file mode 100644 index 0000000..217af47 --- /dev/null +++ b/Android_Beginners/SqQLiteSample/.idea/compiler.xml @@ -0,0 +1,23 @@ + + + + + + diff --git a/Android_Beginners/SqQLiteSample/.idea/copyright/profiles_settings.xml b/Android_Beginners/SqQLiteSample/.idea/copyright/profiles_settings.xml new file mode 100644 index 0000000..e7bedf3 --- /dev/null +++ b/Android_Beginners/SqQLiteSample/.idea/copyright/profiles_settings.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/Android_Beginners/SqQLiteSample/.idea/dictionaries/Aybars.xml b/Android_Beginners/SqQLiteSample/.idea/dictionaries/Aybars.xml new file mode 100644 index 0000000..d221426 --- /dev/null +++ b/Android_Beginners/SqQLiteSample/.idea/dictionaries/Aybars.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/Android_Beginners/SqQLiteSample/.idea/encodings.xml b/Android_Beginners/SqQLiteSample/.idea/encodings.xml new file mode 100644 index 0000000..e206d70 --- /dev/null +++ b/Android_Beginners/SqQLiteSample/.idea/encodings.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/Android_Beginners/SqQLiteSample/.idea/gradle.xml b/Android_Beginners/SqQLiteSample/.idea/gradle.xml new file mode 100644 index 0000000..736c7b5 --- /dev/null +++ b/Android_Beginners/SqQLiteSample/.idea/gradle.xml @@ -0,0 +1,18 @@ + + + + + + + diff --git a/Android_Beginners/SqQLiteSample/.idea/misc.xml b/Android_Beginners/SqQLiteSample/.idea/misc.xml new file mode 100644 index 0000000..68d00bd --- /dev/null +++ b/Android_Beginners/SqQLiteSample/.idea/misc.xml @@ -0,0 +1,53 @@ + + + + + + + + + + + + + + + + Abstraction issues + + + + + + + + + + + + + 1.7 + + + + + + + + + + + + + + + + diff --git a/Android_Beginners/SqQLiteSample/.idea/modules.xml b/Android_Beginners/SqQLiteSample/.idea/modules.xml new file mode 100644 index 0000000..c08a4f1 --- /dev/null +++ b/Android_Beginners/SqQLiteSample/.idea/modules.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/Android_Beginners/SqQLiteSample/.idea/scopes/scope_settings.xml b/Android_Beginners/SqQLiteSample/.idea/scopes/scope_settings.xml new file mode 100644 index 0000000..922003b --- /dev/null +++ b/Android_Beginners/SqQLiteSample/.idea/scopes/scope_settings.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/Android_Beginners/SqQLiteSample/.idea/vcs.xml b/Android_Beginners/SqQLiteSample/.idea/vcs.xml new file mode 100644 index 0000000..def6a6a --- /dev/null +++ b/Android_Beginners/SqQLiteSample/.idea/vcs.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/Android_Beginners/SqQLiteSample/SqQLiteSample.iml b/Android_Beginners/SqQLiteSample/SqQLiteSample.iml new file mode 100644 index 0000000..0bb6048 --- /dev/null +++ b/Android_Beginners/SqQLiteSample/SqQLiteSample.iml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + diff --git a/Android_Beginners/SqQLiteSample/app/.gitignore b/Android_Beginners/SqQLiteSample/app/.gitignore new file mode 100644 index 0000000..796b96d --- /dev/null +++ b/Android_Beginners/SqQLiteSample/app/.gitignore @@ -0,0 +1 @@ +/build diff --git a/Android_Beginners/SqQLiteSample/app/app.iml b/Android_Beginners/SqQLiteSample/app/app.iml new file mode 100644 index 0000000..0d116ec --- /dev/null +++ b/Android_Beginners/SqQLiteSample/app/app.iml @@ -0,0 +1,93 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Android_Beginners/SqQLiteSample/app/build.gradle b/Android_Beginners/SqQLiteSample/app/build.gradle new file mode 100644 index 0000000..ddf9361 --- /dev/null +++ b/Android_Beginners/SqQLiteSample/app/build.gradle @@ -0,0 +1,25 @@ +apply plugin: 'com.android.application' + +android { + compileSdkVersion 22 + buildToolsVersion "22.0.1" + + defaultConfig { + applicationId "aybars.arslan.sqqlitesample" + minSdkVersion 14 + targetSdkVersion 22 + versionCode 1 + versionName "1.0" + } + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' + } + } +} + +dependencies { + compile fileTree(dir: 'libs', include: ['*.jar']) + compile 'com.android.support:appcompat-v7:22.2.1' +} diff --git a/Android_Beginners/SqQLiteSample/app/proguard-rules.pro b/Android_Beginners/SqQLiteSample/app/proguard-rules.pro new file mode 100644 index 0000000..00fd6e7 --- /dev/null +++ b/Android_Beginners/SqQLiteSample/app/proguard-rules.pro @@ -0,0 +1,17 @@ +# Add project specific ProGuard rules here. +# By default, the flags in this file are appended to flags specified +# in D:\AndroidStudio\sdk/tools/proguard/proguard-android.txt +# You can edit the include path and order by changing the proguardFiles +# directive in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# Add any project specific keep options here: + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} diff --git a/Android_Beginners/SqQLiteSample/app/src/androidTest/java/aybars/arslan/sqqlitesample/ApplicationTest.java b/Android_Beginners/SqQLiteSample/app/src/androidTest/java/aybars/arslan/sqqlitesample/ApplicationTest.java new file mode 100644 index 0000000..37f080e --- /dev/null +++ b/Android_Beginners/SqQLiteSample/app/src/androidTest/java/aybars/arslan/sqqlitesample/ApplicationTest.java @@ -0,0 +1,13 @@ +package aybars.arslan.sqqlitesample; + +import android.app.Application; +import android.test.ApplicationTestCase; + +/** + * Testing Fundamentals + */ +public class ApplicationTest extends ApplicationTestCase { + public ApplicationTest() { + super(Application.class); + } +} \ No newline at end of file diff --git a/Android_Beginners/SqQLiteSample/app/src/main/AndroidManifest.xml b/Android_Beginners/SqQLiteSample/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000..b310892 --- /dev/null +++ b/Android_Beginners/SqQLiteSample/app/src/main/AndroidManifest.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + diff --git a/Android_Beginners/SqQLiteSample/app/src/main/java/aybars/arslan/sqqlitesample/MainActivity.java b/Android_Beginners/SqQLiteSample/app/src/main/java/aybars/arslan/sqqlitesample/MainActivity.java new file mode 100644 index 0000000..41029d4 --- /dev/null +++ b/Android_Beginners/SqQLiteSample/app/src/main/java/aybars/arslan/sqqlitesample/MainActivity.java @@ -0,0 +1,61 @@ +package aybars.arslan.sqqlitesample; + +import android.support.v7.app.ActionBarActivity; +import android.os.Bundle; +import android.util.Log; +import android.view.Menu; +import android.view.MenuItem; +import android.view.View; +import android.widget.Button; +import android.widget.EditText; +import android.widget.TextView; + + +public class MainActivity extends ActionBarActivity { + + EditText etInput; + TextView txtText; + Button btnAdd, btnDelete; + MyDBHandler dbHandler; + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_main); + btnAdd = (Button)findViewById(R.id.btnAdd); + btnDelete = (Button)findViewById(R.id.btnDelete); + etInput = (EditText)findViewById(R.id.etInput); + txtText = (TextView)findViewById(R.id.txtText); + + dbHandler = new MyDBHandler(this, null, null, 1); + try { + printDatabase(); + }catch (Exception e){ + Log.i("exxxx", e.toString()); + } + + } + + public void printDatabase() { + String dbString = dbHandler.databaseToString(); + txtText.setText(dbString); + etInput.setText(""); + } + + //Add a product to the database + public void addButtonClicked(View view){ + Log.i("exxxx", "CLİCKED ADD BUTTON"); + String product = etInput.getText().toString(); + Products p = new Products(product); + dbHandler.addProduct(p); + printDatabase(); + } + + //Delete a product to the database + public void deleteButtonClicked(View view){ + Log.i("exxxx", "CLİCKED DELETE BUTTON"); + String inputText = etInput.getText().toString(); + dbHandler.deleteProduct(inputText); + printDatabase(); + } +} diff --git a/Android_Beginners/SqQLiteSample/app/src/main/java/aybars/arslan/sqqlitesample/MyDBHandler.java b/Android_Beginners/SqQLiteSample/app/src/main/java/aybars/arslan/sqqlitesample/MyDBHandler.java new file mode 100644 index 0000000..d2d5644 --- /dev/null +++ b/Android_Beginners/SqQLiteSample/app/src/main/java/aybars/arslan/sqqlitesample/MyDBHandler.java @@ -0,0 +1,76 @@ +package aybars.arslan.sqqlitesample; + +import android.content.ContentValues; +import android.content.Context; +import android.database.Cursor; +import android.database.sqlite.SQLiteDatabase; +import android.database.sqlite.SQLiteOpenHelper; + +/** + * Created by Aybars on 26.09.2015. + */ +public class MyDBHandler extends SQLiteOpenHelper { + + private static final int DATABASE_VERSION = 3; + private static final String DATABASE_NAME = "products.db"; + public static final String TABLE_PRODUCTS = "products"; + public static final String COLUMN_ID = "_id"; + public static final String COLUMN_PRODUCTNAME = "productname"; + + public MyDBHandler(Context context, String name, SQLiteDatabase.CursorFactory factory, int version) { + super(context, DATABASE_NAME, factory, DATABASE_VERSION); + } + + @Override + public void onCreate(SQLiteDatabase db) { + String query = "CREATE TABLE " + TABLE_PRODUCTS + "(" + + COLUMN_ID + " INTEGER PRIMARY KEY AUTOINCREMENT ," + + COLUMN_PRODUCTNAME + " TEXT " + + ");"; + db.execSQL(query); + } + + @Override + public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { + db.execSQL("DROP TABLE IF EXIST " + TABLE_PRODUCTS); + onCreate(db); + } + + //Add new row to database + public void addProduct(Products product){ + ContentValues values = new ContentValues(); + values.put(COLUMN_PRODUCTNAME, product.get_productname()); + SQLiteDatabase db = getWritableDatabase(); + db.insert(TABLE_PRODUCTS, null, values); + db.close(); + } + + //Delete product from the database + public void deleteProduct(String productName){ + SQLiteDatabase db = getWritableDatabase(); + db.execSQL("DELETE FROM " + TABLE_PRODUCTS + " WHERE " + COLUMN_PRODUCTNAME + "=\"" + productName + "\";"); + } + + //Print out the database as a string + public String databaseToString(){ + String dbString = ""; + SQLiteDatabase db = getWritableDatabase(); + String query = "SELECT * FROM " + TABLE_PRODUCTS + " WHERE 1"; + + //Cursor point to a location in your result + Cursor c = db.rawQuery(query, null); + //Move to first row in your result + c.moveToFirst(); + + //Position after the last row means the end of the results + while (!c.isAfterLast()) { + if (c.getString(c.getColumnIndex("productname")) != null) { + dbString += c.getString(c.getColumnIndex("productname")); + dbString += "\n"; + } + c.moveToNext(); + } + db.close(); + return dbString; + } +} diff --git a/Android_Beginners/SqQLiteSample/app/src/main/java/aybars/arslan/sqqlitesample/Products.java b/Android_Beginners/SqQLiteSample/app/src/main/java/aybars/arslan/sqqlitesample/Products.java new file mode 100644 index 0000000..c2c53e4 --- /dev/null +++ b/Android_Beginners/SqQLiteSample/app/src/main/java/aybars/arslan/sqqlitesample/Products.java @@ -0,0 +1,34 @@ +package aybars.arslan.sqqlitesample; + +/** + * Created by Aybars on 26.09.2015. + */ +public class Products { + private int _id; + private String _productname; + + public Products(){ + + } + + public void set_id(int _id) { + this._id = _id; + } + + public void set_productname(String _productname) { + this._productname = _productname; + } + + public int get_id() { + return _id; + } + + public String get_productname() { + return _productname; + } + + public Products(String productname) { + this._productname = productname; + } + +} diff --git a/Android_Beginners/SqQLiteSample/app/src/main/res/layout/activity_main.xml b/Android_Beginners/SqQLiteSample/app/src/main/res/layout/activity_main.xml new file mode 100644 index 0000000..706327b --- /dev/null +++ b/Android_Beginners/SqQLiteSample/app/src/main/res/layout/activity_main.xml @@ -0,0 +1,49 @@ + + + + +