Skip to content

Instantly share code, notes, and snippets.

View cesargalindo's full-sized avatar

Cesar Galindo cesargalindo

  • www.zojab.com
  • San Jose
View GitHub Profile
// taken from Tutorial: Creating an Angular2 Autocomplete by Leonardo Jines
// http://4dev.tech/2016/03/tutorial-creating-an-angular2-autocomplete/#comment-1609
import {Component, ElementRef} from 'angular2/core';
@Component({
selector: 'my-app',
host: {
'(document:click)': 'handleClick($event)',
},
import {
Component,
provide,
NgZone
} from '@angular/core';
import {bootstrap} from '@angular/platform-browser-dynamic';
import {
MapsAPILoader,
@cesargalindo
cesargalindo / gist:5185312541034204818d
Created July 15, 2015 20:17
Display list of Edge Users missing from Dev Portal
<?php
/*
* This script presumes that you place the following in composer.json:
* {
* "require": {
* "guzzlehttp/guzzle": "~4.0"
* }
* }
* and then run composer install in that directory.
*/
@cesargalindo
cesargalindo / gist:8ecb9e5f44847e635409
Last active August 29, 2015 14:25
Migrate Edge User missing from Dev Portal to Dev Portal Database
<?php
/*
* This script presumes that you place the following in composer.json:
* {
* "require": {
* "guzzlehttp/guzzle": "~4.0"
* }
* }
* and then run composer install in that directory.
*/
@cesargalindo
cesargalindo / gist:79b7edeaaf40afb763b6
Created June 10, 2015 16:15
Insert Drupal User 1
INSERT INTO `users` (`uid`, `name`, `pass`, `mail`, `theme`, `signature`, `signature_format`, `created`, `access`, `login`, `status`, `timezone`, `language`, `picture`, `init`, `data`, `uuid`)
VALUES
(1,'admin','$S$D.abhekFqku905HOIs1YZIpCWavJe5j1tWNlqb5/J3IYuaDRilLr','noreply@apigee.com','','','full_html',1416599660,1422312373,1422312373,1,'','',0,'',X'613A363A7B733A31363A22636B656469746F725F64656661756C74223B733A313A2274223B733A32303A22636B656469746F725F73686F775F746F67676C65223B733A313A2274223B733A31343A22636B656469746F725F7769647468223B733A343A2231303025223B733A31333A22636B656469746F725F6C616E67223B733A323A22656E223B733A31383A22636B656469746F725F6175746F5F6C616E67223B733A313A2274223B733A373A226F7665726C6179223B693A313B7D','c403b212-1bc9-4889-8d21-6a02429d54b7');
INSERT INTO `field_revision_field_first_name` (`entity_type`, `bundle`, `deleted`, `entity_id`, `revision_id`, `language`, `delta`, `field_first_name_value`, `field_first_name_format`)
VALUES
('user','user',0,1,1,'und',0,'drupal',NULL);
<?php
/*
* This script presumes that you place the following in composer.json:
* {
* "require": {
* "guzzlehttp/guzzle": "~4.0"
* }
* }
* and then run composer install in that directory.
*/