Created with love by: Your Name Here
View online at: Your URL here
One or two sentence summary of your project.
| - OPTIONAL: Well, it's pretty cool and handy ...not. At the time I used this lib for the first time, I felt like I had to type too many characters just to log a string 😄 , so I created a couple of methods that will make it a lot shorter. E.g: | |
| ```js | |
| console.log(chalk.red.bold("Hello world!")); | |
| c.red("Hello world!"); // same output as above | |
| ``` | |
| - OPTIONAL: Here is the code if you want to use it, you can also customize it to suit your needs. Create a file `modules/chalk.js` with the content of following code: |
| import React from "react"; | |
| import { StyleSheet, Text, View } from "react-native"; | |
| import { GiftedChat } from "react-native-gifted-chat"; | |
| export default class App extends React.Component { | |
| constructor(props) { | |
| super(props); | |
| let firstMsg = { | |
| _id: 1, | |
| text: "Hello CoderSchool Fan!", |
| //: Playground - noun: a place where people can play | |
| import UIKit | |
| let CHARACTER_LIMIT = 7 | |
| let text = "a b c d e f g h i j k" | |
| class TweetComponent: CustomStringConvertible { | |
| var content: String | |
| let index: Int |
if let destinationViewController = segue.destination as? AddGuestsViewController {
destinationViewController.event = event
destinationViewController.isOwner = isOwner
destinationViewController.limit = limit
}This is taken from GuestsViewController.swift. I arrived at this code from the AddGuestsViewController, because I wasn't sure who was setting the value of the event: Event! member of that controller.
I don't think this code is really bad, but a few quick notes:
| username | caption | created_at | likes_count | url | |--------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| <p id="notice"><%= notice %></p> | |
| <div class="blog-header"> | |
| <div class="container"> | |
| <h1 class="blog-title">Sang's Blog</h1> | |
| <p class="lead blog-description">The prework assignment for CoderSchool's ruby class!</p> | |
| </div> | |
| </div> | |
| <div class="container"> |
| $(function () { | |
| var ClickCounterView = Thorax.View.extend({ | |
| template: Handlebars.compile("<button class=\"btn\">Click Me!</button><h1>I've been pressed {{times}} times</h1>"), | |
| initialize: function() { | |
| this.times = 0; | |
| }, | |
| events: { | |
| 'click button': "onButtonClick" |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| // Simplest possible TableView. | |
| import Foundation | |
| class SimpleTableViewController: UITableViewController { | |
| let data = ["foo", "bar", "baz"] | |
| let CellIdentifier = "CellIdentifier" | |
| override func viewDidLoad() { | |
| self.tableView.registerClass(UITableViewCell.self, forCellReuseIdentifier:CellIdentifier) |