Skip to content

Instantly share code, notes, and snippets.

@yclim95
yclim95 / autoresize.ts
Created April 18, 2018 13:55 — forked from maxt3r/autoresize.ts
Ionic 2 ion-textarea autoresize
// An autoresize directive that works with ion-textarea in Ionic 2
// Usage example: <ion-textarea autoresize [(ngModel)]="body"></ion-textarea>
// Based on https://www.npmjs.com/package/angular2-autosize
import { Directive, HostListener, ElementRef } from "@angular/core";
@Directive({
selector: "ion-textarea[autoresize]" // Attribute selector
})
export class Autoresize {
@yclim95
yclim95 / .gitignore
Created June 16, 2017 04:28 — forked from octocat/.gitignore
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@yclim95
yclim95 / README.md
Created June 13, 2017 13:24 — forked from hofmannsven/README.md
My simply Git Cheatsheet

JavaScript, the weird parts

link to notes https://git.io/vgpKc

about Sher Minn

  • front-end web engineer
  • funemployed, but joining Viki.com in a week
  • recently spent 3 months in NYC at the Recurse Center
    • retreat for programmers
  • where people go to be better at what they do
@yclim95
yclim95 / people.csv
Last active January 25, 2016 17:14 — forked from nextacademy-private/people.csv
# Put "List" Option
id first_name last_name email phone created_at
1 Lani Rollins [email protected] 1-633-389-7173 2012-05-10T03:53:40-07:00
2 McKenzie Burris [email protected] 1-906-235-0832 2013-07-06T07:23:09-07:00
3 Amethyst Morgan [email protected] 1-548-366-6273 2012-06-16T13:28:33-07:00
4 Lamar Hardin [email protected] 1-519-693-8091 2013-12-02T06:45:30-08:00
5 Keegan Coleman [email protected] 1-998-626-8896 2012-11-15T16:55:29-08:00
6 Marshall Griffith [email protected] 1-554-353-5053 2012-09-14T15:57:44-07:00
7 Jonah Deleon [email protected] 1-782-671-2356 2013-12-13T15:29:38-08:00
8 Jackson Howell [email protected] 1-323-738-0807 2013-02-03T09:49:27-08:00
9 Kieran Edwards [email protected] 1-695-830-5757 2012-08-17T01:23:51-07:00
To create a second name for the variable or method.
alias
A command that appends two or more objects together.
and
Designates code that must be run unconditionally at the beginning of the program before any other.
BEGIN
Delimits a "begin" block of code, which can allow the use of while and until in modifier position with multi-line statements.
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
Move with Lil to the black mountain hills of Dakota
Lose Lil to Danny
Get hit in the eye by Danny
Walk into town seeking revenge
Book room at local saloon
Check into room and read Gideon's bible
Drink too much gin
Overhear Lil and Danny in neighboring room
Burst into neighboring room and declare a showdown
Get shot by Danny and collapse in corner
# Questions:
# 1. How can a user quit the browser gracefully?
# 2. How can a user ask for help, i.e., how do they know what commands are available to them?
require 'open-uri'
require 'byebug'
require 'net/http'
require 'nokogiri'
require_relative 'util'
# 1ST PART (without .fetch)
=begin
class House
attr_reader :square_feet, :num_bedrooms, :num_baths, :cost
def initialize(option)#EDITED
@address = option[:address]
@square_feet = option[:square_feet]
@num_bedrooms = option[:num_bedrooms]
@num_baths = option[:num_baths]
@yclim95
yclim95 / cookies_and_ovens.rb
Last active January 19, 2016 03:42 — forked from nextacademy-private/cookies_and_ovens.rb
Cookies and Ovens
# Answer These Questions:
# 1 What are essential classes?
# - Cookies, Oven
# 2 What attributes will each class have?
# Cookies
# - doughy, almost_ready, ready, burned, baking_duration
#
# Oven
# - start_time, bake_time