Open ~/.bash_profile
in your favorite editor and add the following content to the bottom.
# Git branch in prompt.
parse_git_branch() {
<?php | |
class Answer extends ModelPDO { | |
public static function getAllByQuestion($question) { | |
return self::getAllBy('question_id', $question->id); | |
} | |
public function __construct($data = false) { |
var devices = [ | |
{ name: 'Desktop - Huge', width: 2880, height: 1800, ratio: 2, type: 'desktop' }, | |
{ name: 'Desktop - Extra Large', width: 1920, height: 1080, ratio: 1, type: 'desktop' }, | |
{ name: 'Desktop - Large', width: 1440, height: 900, ratio: 1, type: 'desktop' }, | |
{ name: 'Desktop - HiDPI', width: 1366, height: 768, ratio: 1, type: 'desktop' }, | |
{ name: 'Desktop - MDPI', width: 1280, height: 800, ratio: 1, type: 'desktop' }, | |
{ name: 'Laptop with HiDPI screen', width: 1440, height: 900, ratio: 2, type: 'desktop' }, | |
{ name: 'Laptop with MDPI screen', width: 1280, height: 800, ratio: 1, type: 'desktop' }, | |
{ name: 'Laptop with touch', width: 1280, height: 950, ratio: 1, type: 'desktop' }, | |
{ name: 'Tablet - Portrait', width: 768, height: 1024, ratio: 1, type: 'tablet' }, |
/* Adobe Analytics | |
Marketing Reports & Analytics | |
Copyright 1996-2013 Adobe, Inc. All Rights Reserved */ | |
s = new AppMeasurement(); | |
s.account="outrainjjscit13site05,outrainjjscit13global" | |
/************************** CONFIG SECTION **************************/ | |
/* You may add or alter any code config here. */ | |
s.charSet="UTF-8" |
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#include <mysql/mysql.h> | |
/* | |
The program is a demonstration of using prepared statements to perform operations on the below table in mariadb. | |
The statements include: insert, select, delete, etc. | |
CREATE TABLE person ( |
import React, { Component } from 'react'; | |
import '../plugins/jscolor/jscolor'; | |
/** | |
* JsColor | |
*/ | |
class JsColor extends Component { | |
/** | |
* JsColor Constructor | |
* @param {*} props |
import { createConnection, getConnection, Entity, getRepository } from "typeorm"; | |
import { PrimaryGeneratedColumn, Column } from "typeorm"; | |
@Entity() | |
export class MyEntity { | |
@PrimaryGeneratedColumn() | |
id?: number; | |
@Column() | |
name?: string; |
require('dotenv/config') | |
const express = require('express') | |
const multer = require('multer') | |
const AWS = require('aws-sdk') | |
const uuid = require('uuid/v4') | |
const app = express() | |
const port = 3000 |
import 'package:flutter/material.dart'; | |
void main() => runApp(SelectListItem()); | |
class SelectListItem extends StatefulWidget { | |
@override | |
_SelectListItemState createState() => _SelectListItemState(); | |
} |
version: '3.7' | |
services: | |
elasticsearch: | |
image: elasticsearch:7.9.2 | |
ports: | |
- '9200:9200' | |
environment: | |
- discovery.type=single-node | |
ulimits: |