std::set phoenix;
phoenix.key_comp();
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
angular.module('testApp', []). | |
directive('lazyLoad', ['$window', '$q', function ($window, $q) { | |
function load_script() { | |
var s = document.createElement('script'); // use global document since Angular's $document is weak | |
s.src = 'https://maps.googleapis.com/maps/api/js?sensor=false&callback=initialize'; | |
document.body.appendChild(s); | |
} | |
function lazyLoadApi(key) { | |
var deferred = $q.defer(); | |
$window.initialize = function () { |
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
#Notes on how to install a missing module from PostgreSQL | |
#Download and Postgresql (no need to make install because we already have it..): | |
#pre-requisites | |
sudo apt-get install gcc | |
sudo apt-get install libreadline-dev | |
sudo apt-get install zlib1g-dev | |
wget http://ftp.postgresql.org/pub/source/v9.3.0/postgresql-9.3.0.tar.gz |
I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
When using directives, you often need to pass parameters to the directive. This can be done in several ways. The first 3 can be used whether scope is true or false. This is still a WIP, so validate for yourself.
-
Raw Attribute Strings
<div my-directive="some string" another-param="another string"></div>
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
global | |
log 127.0.0.1 local2 info | |
pidfile /var/run/haproxy.pid | |
stats socket /var/run/haproxy.stat mode 600 level admin | |
#debug | |
defaults | |
mode http | |
log global |
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
#!/bin/bash | |
################################################################################ | |
# This script will check to see if a website is up/down by pinging the url | |
# If there is no response an email wil be send via an external smtp mail server | |
# If the site status is down an email will be send when the site is up again | |
# set your check interval here :-) ############################################# | |
interval=3600 # hour |
Hi,
You can use the below scrip to send thank you notes to your friends who wished for your birthday on your Facebook timeline.
Instructions:
#Get the Facebook access token: