get dependencies for an existing repo in your virtual env:
pipenv install
import Ember from 'ember'; | |
const { get, set, computed } = Ember; | |
export default Ember.Controller.extend({ | |
isButtonOn: false, | |
// begin edit area | |
toggle () { | |
var bool = this.isButtonOn ? false: true; | |
this.set('isButtonOn', bool); |
-- Get Rooms Until As a Function (REVISED, now takes time, AND SPECIFIC DATE) | |
DROP FUNCTION IF EXISTS RoomAvailableOnUntil; | |
DELIMITER // | |
CREATE DEFINER=`root`@`localhost` FUNCTION `RoomAvailableOnUntil`(roomNum VARCHAR(255), | |
nowTime VARCHAR(255), nowDate DATE) RETURNS time | |
BEGIN | |
DECLARE nextTime TIME; | |
SELECT MIN(startTime) INTO nextTime | |
FROM nsccSchedule |
@Component({ | |
templateUrl: 'freeroom-results.html', | |
}) | |
export class FreeRoomResultsPage { | |
//public rooms: string[] = new Array(); | |
rooms: any; | |
public day: Date = new Date(); | |
icon: string; | |
constructor(public navCtrl: NavController, public navParams: NavParams, public http: Http){ |
package com.example.w0143446.movietrailerapp; | |
import android.content.Context; | |
import android.graphics.Bitmap; | |
import android.graphics.BitmapFactory; | |
import android.graphics.drawable.BitmapDrawable; | |
import android.graphics.drawable.Drawable; | |
import android.os.AsyncTask; | |
import android.support.annotation.NonNull; | |
import android.util.Log; |
/* | |
* An example of a function fetching data | |
* and returning a promise, making itself | |
* "thenable". | |
ref: https://scotch.io/@wesleylhandy/writing-your-own-javascript-promises | |
*/ | |
function fetchIds(url) { | |
return new Promise((resolve, reject) => { | |
queryUrl = "/query?f=json&where=1%3D1&returnIdsOnly=true" |
***How to make sure PHP is setup correctly on your IIS Server
Internet Information Services > World Wide Web Services >
- enable Application Development Features > CGI
- enable Common HTTP Features > Static Content
[Functional Components](https://reactjs.org/tutorial/tutorial.html#function-components) |
<Grid item xs={12} sm={6}><Paper className={classes.paper}>Test</Paper>
item: pass the item property to components inside a container component so that they become items.
Sometimes it's nice to be able to step through code directly in VSCode, setting breakpoints and watching variables. Here's tentatively how you can do it with our React app:
Install VSCode Extension Debugger for Chrome.
Add Configuration to your Launch.json as per below to launch Chrome [Source]
Add argument for "runtimeArgs" as per github suggestion here to get your Redux extension running in the VSCode Chrome browser.