Skip to content

Instantly share code, notes, and snippets.

View sharynneazhar's full-sized avatar

Sharynne Azhar sharynneazhar

View GitHub Profile
@sharynneazhar
sharynneazhar / exercise.md
Last active March 29, 2023 20:41
JavaScript Data Types Practice

Javascript Data Types Exercises

Data Types

For each expression, predict what you think the output will be in a comment (//) without first running the command. Then run the expression in the console. Note the actual output in a comment and compare it with your prediction.

You may run these commands inside the Dev Tool console to double check your answer!

Example

@sharynneazhar
sharynneazhar / locationSearch.js
Last active May 30, 2018 15:44
Google Place Autocomplete API - Select First Suggestion on Enter
import React, { Component } from 'react';
export default class LocationSearch extends Component {
componentDidMount() {
const input = document.getElementById("location");
const options = { types: [ "(regions)" ] };
this.locationSearch = new google.maps.places.Autocomplete(input, options);
this.locationSearch.addListener("place_changed", this.handleLocationSearch);
}
@sharynneazhar
sharynneazhar / bootstrap-template.html
Created July 23, 2017 03:06
Bootstrap HTML Template
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Bootstrap 101 Template</title>
@sharynneazhar
sharynneazhar / bootstrap-cdn-template.html
Created July 23, 2017 03:04
Bootstrap HTML Template (with CDN)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Bootstrap 101 Template</title>
<!-- Bootstrap -->
@sharynneazhar
sharynneazhar / Makefile
Last active February 27, 2017 15:39
Makefile Template
#######################################################################
# General Makefile for compiling c++ programs
# Author : Sharynne Azhar
#######################################################################
# Specify the lab number
LAB_NUM=X
# Specify the folder name pattern
FOLDER_NAME := Azhar_Lab$(LAB_NUM)