This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Custom = { | |
showHideSearch: function(boolVal) { | |
var onOff = boolVal; | |
if (onOff == 'on') { | |
jQuery(function() { | |
jQuery('#search-icon').click(function() { | |
var jtheinputselector = jQuery('input#search'); | |
if (!jtheinputselector.hasClass('active')) { | |
jQuery('#top-menu > #md-menu').css({ | |
'z-index': '10' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {Component} from 'angular2/core'; | |
import {PropertyBindingComponent} from "./property-binding.component"; | |
@Component({ | |
selector: 'app', | |
template: ` | |
<section class="parent"> | |
<h2>This is the parent component</h2> | |
<h4>Please, enter your name:</h4> | |
<input type="text" [(ngModel)]="name"> | |
<br><br> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Db; | |
class DbMgmt | |
{ | |
const SERVERNAME = 'localhost'; | |
const PORT = "3306"; | |
const USERNAME = 'root'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @author Davide Pugliese | |
* @uses PDO | |
* | |
* This is a little engine to run queries the smart way. | |
* | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Entity; | |
use Db\DbObj; | |
class FormField | |
{ | |
public $the_table; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Controller; | |
use App\Db\DbMgmt; | |
use App\Db\DbObj; | |
use App\Entity\Answer; | |
use App\Entity\FormField; | |
use App\Entity\User; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Db; | |
class DbMgmt | |
{ | |
const SERVERNAME = 'localhost'; | |
const PORT = "3306"; | |
const USERNAME = 'root'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Db; | |
class DbMgmt | |
{ | |
const SERVERNAME = 'localhost'; | |
const PORT = "3306"; | |
const USERNAME = 'root'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created by Davide Pugliese on 26/02/17. | |
*/ | |
import {Observable, Subscribable} from "rxjs/Observable"; | |
import "rxjs/add/observable/from"; | |
import "rxjs/add/observable/fromPromise"; | |
import "rxjs/add/observable/of"; | |
import "rxjs/add/operator/map"; | |
import "rxjs/add/observable/defer"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created by Davide Pugliese on 26/02/17. | |
*/ | |
import { Observable } from "rxjs/Observable"; | |
import "rxjs/add/observable/from"; | |
let request = require('request'); | |
import { userObservable } from "./user.service"; | |
import {first} from "rxjs/operator/first"; | |
import {last} from "rxjs/operator/last"; |
OlderNewer