Apache Configuration

<VirtualHost xxx.xx.xxx.xxx:80>
    ServerName ****.ucla.edu
    DocumentRoot /var/www/html/****/
    ServerAdmin jrocha@****.ucla.edu
    RewriteEngine On
    Redirect permanent / https://****.ucla.edu/
    <Directory /var/www/html/****/>
        AllowOverride All
        Options +FollowSymLinks
    </Directory>
    ErrorLog logs/http-****_error_log
    CustomLog logs/http-****_access_log common
 </VirtualHost>

<VirtualHost xxx.xx.xxx.xxx:80>
    ServerName ****.ucla.edu
    DocumentRoot /var/www/html/****/
    ServerAdmin jrocha@****.ucla.edu
    RewriteEngine On
    <Directory /var/www/html/****/>
        AllowOverride All
        Options +FollowSymLinks
    </Directory>
    ErrorLog logs/http-****_error_log
    CustomLog logs/http-****_access_log common
 </VirtualHost>

<VirtualHost xxx.xx.xxx.xxx:80>
    ServerName ****.ucla.edu
    DocumentRoot /var/www/html/****-dev/
    Redirect permanent / https://****.ucla.edu/
    ServerAdmin JRocha@****.ucla.du
    RewriteEngine On
    <Directory /var/www/html/****v/>
        AllowOverride All
        Options +FollowSymLinks
    </Directory>
    ErrorLog logs/http-****-dev_error_log
    CustomLog logs/http-****-dev_access_log common
 </VirtualHost>

NameVirtualHost xxx.xx.xxx.xxx:80

<VirtualHost xxx.xx.xxx.xxx:80>
    ServerName ****.ucla.edu
    RewriteEngine On
    Redirect permanent / https://****.ucla.edu/
    ServerAdmin jrocha@****.ucla.edu
</VirtualHost>

<VirtualHost xxx.xx.xxx.xxx:80>
    ServerName ****.ucla.edu
    RewriteEngine On
    Redirect permanent / https://****.ucla.edu/
    ServerAdmin jrocha@****.ucla.edu
</VirtualHost>

 

MySQL management with SequelPro

date
    if (isset($_POST['update'])) {
        $wpdb->update(
                $table_name, //table
                array('name' => $name), //data
                array('ID' => $id), //where
                array('%s'), //data format
                array('%s') //where format
        );
    }
//delete
    else if (isset($_POST['delete'])) {
        $wpdb->query($wpdb->prepare("DELETE FROM $table_name WHERE id = %s", $id));
    } else {//selecting value to update	
        $schools = $wpdb->get_results($wpdb->prepare("SELECT id,name from $table_name where id=%s", $id));
        foreach ($schools as $s) {
            $name = $s->name;
        }
    }
    ?>
    <link type="text/css" href="<?php echo WP_PLUGIN_URL; ?>/uc-schools/style-admin.css" rel="stylesheet" />
    <div class="wrap">
        <h2>Schools</h2>

        <?php if ($_POST&#91;'delete'&#93;) { ?>
            <div class="updated"><p>School deleted</p></div>
            <a href="<?php echo admin_url('admin.php?page=uc_schools_list') ?>">&laquo; Back to schools list</a>

        <?php } else if ($_POST&#91;'update'&#93;) { ?>
            <div class="updated"><p>School updated</p></div>
            <a href="<?php echo admin_url('admin.php?page=uc_schools_list') ?>">&laquo; Back to schools list</a>

        <?php } else { ?>
            <form method="post" action="<?php echo $_SERVER&#91;'REQUEST_URI'&#93;; ?>">
                <table class='wp-list-table widefat fixed'>
                    <tr><th>Name</th><td><input type="text" name="name" value="<?php echo $name; ?>"/></td></tr>
                </table>
                <input type='submit' name="update" value='Save' class='button'> &nbsp;&nbsp;
                <input type='submit' name="delete" value='Delete' class='button' onclick="return confirm('Are you sure you want to delete this?')">
            </form>
        <?php } ?>

    </div>

 

Typescript -> Javascript

import {Component} from 'angular2/core'
import {bootstrap} from 'angular2/platform/browser';

@Component({
  selector: 'cdsc-ucla',
  providers: [],
  template: `
    <div>
       <h2>Hello {{name}}</h2>
      <h3>Center for Domain Specific Computing (CDSC)</h3>

    </div>
  `,
  directives: []
})
export class App {
  constructor() {
    this.name = 'Angular2'
  }
}

bootstrap(App, [])
  .catch(err => console.error(err));
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) {if (window.CP.shouldStopExecution(1)){break;}if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
window.CP.exitedLoop(1);
}
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var core_1 = require("angular2/core");
var browser_1 = require("angular2/platform/browser");
var App = (function () {
    function App() {
        this.name = 'Angular2';
    }
    return App;
}());
App = __decorate([
    core_1.Component({
        selector: 'cdsc-ucla',
        providers: [],
        template: "\n    <div>\n      <h2>Hello {{name}}</h2>\n      <h3>Center for Domain Specific Computing (CDSC)</h3>\n    </div>\n  ",
        directives: []
    })
], App);
exports.App = App;
browser_1.bootstrap(App, [])["catch"](function (err) { return console.error(err); });

Find Javascript, Python and more PHP examples here.