This file contains hidden or 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
| angular.module('cricketapp', []). | |
| config(['$routeProvider', function($routeProvider){ | |
| $routeProvider. | |
| when('/dashboard', {templateUrl: 'partials/pending-games.html', controller: GameListCtrl}). | |
| otherwise({redirectTo: '/'}); | |
| }]) | |
| //my controller |
This file contains hidden or 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
| Components.utils.import("resource://gre/modules/AddonManager.jsm", null).AddonManager.getAllAddons(function (addons) { | |
| alert(addons.filter(function (addon) { | |
| return addon.type == "extension" | |
| }).map(function (addon) { | |
| return addon.name + ": " + addon.getResourceURI().spec | |
| }).join("\n")) | |
| }); |
This file contains hidden or 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
| #I am assuming that you have brew installed on your system | |
| #first do this on command line | |
| brew install pkg-config libffi | |
| #then edit your .bash_profile | |
| export PKG_CONFIG_PATH=/usr/local/Cellar/libffi/3.0.13/lib/pkgconfig | |
| export CFLAGS=-Qunused-arguments | |
| export CPPFLAGS=-Qunused-arguments |
This file contains hidden or 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
| [root@zimbra ~]# dig zimbra.debugger.pk any | |
| ; <<>> DiG 9.3.6-P1-RedHat-9.3.6-20.P1.el5_8.6 <<>> zimbra.debugger.pk any | |
| ;; global options: printcmd | |
| ;; Got answer: | |
| ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 43483 | |
| ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0 | |
| ;; QUESTION SECTION: | |
| ;zimbra.debugger.pk. IN ANY |
This file contains hidden or 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
| # urls.py | |
| url(r'partials/(?P<template_name>.+\.html?$)', PartialView.as_view()), | |
| # views.py | |
| class PartialView(TemplateView): | |
| def get_template_names(self): | |
| template_name = 'partials/' + self.kwargs['template_name'] | |
| return [template_name] |
This file contains hidden or 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
| # Set variables in .bashrc file | |
| # don't forget to change your path correctly! | |
| export GOPATH=$HOME/golang | |
| export GOROOT=/usr/local/opt/go/libexec | |
| export PATH=$PATH:$GOPATH/bin | |
| export PATH=$PATH:$GOROOT/bin |
This file contains hidden or 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
| SELECT exec('ALTER TABLE ' || quote_ident(s.nspname) || '.' || quote_ident(s.relname) || ' OWNER TO rds_superuser;') | |
| FROM ( | |
| SELECT nspname, relname | |
| FROM pg_class c JOIN pg_namespace n ON (c.relnamespace = n.oid) | |
| WHERE nspname in ('tiger','topology') AND | |
| relkind IN ('r','S','v') ORDER BY relkind = 'S') | |
| s; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
| CREATE CONSTRAINT ON (n:Address) ASSERT n.node_id IS UNIQUE; | |
| CREATE CONSTRAINT ON (n:Officer) ASSERT n.node_id IS UNIQUE; | |
| CREATE CONSTRAINT ON (n:Entity) ASSERT n.node_id IS UNIQUE; | |
| CREATE CONSTRAINT ON (n:Intermediary) ASSERT n.node_id IS UNIQUE; | |
| USING PERIODIC COMMIT | |
| LOAD CSV WITH HEADERS FROM "file:///Addresses.csv" AS line | |
| CREATE (n:Address {node_id: line.node_id }) | |
| SET n += line; |