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
http://askubuntu.com/questions/627899/nameserver-127-0-1-1-in-resolv-conf-wont-go-away | |
NetworkManager is the program which (via the resolvconf utility) inserts address 127.0.1.1 into resolv.conf. NM inserts that address if an only if it is configured to start an instance of the dnsmasq program to serve as a local forwarding nameserver. That dnsmasq instance listens for queries at address 127.0.1.1. | |
If you do not want to use a local forwarding nameserver then configure NetworkManager not to start a dnsmasq instance and not to insert that address. In /etc/NetworkManager/NetworkManager.conf comment out the line dns=dnsmasq | |
sudo nano /etc/NetworkManager/NetworkManager.conf | |
[main] | |
plugins=ifupdown,keyfile,ofono |
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 | |
$e = new Economics(); | |
print_r($e->Property()); | |
print_r($e->LabourTheory()); | |
print_r($e->InvisibleHand()); | |
?> |
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
# | |
# Copyright (c) 2010 Plex Development Team. All rights reserved. | |
# | |
import re, os, os.path | |
import Media, VideoFiles, Stack, Utils | |
SeriesScanner = __import__('Plex Series Scanner') | |
#nice_match = '(.+) [\(\[]([1-2][0-9]{3})[\)\]]' | |
nice_match = '(.+) [\(\[]([1-2][0-9]{3})[[\s].+[\)\]]' | |
standalone_tv_regexs = [ '(.*?)( \(([0-9]+)\))? - ([0-9])+x([0-9]+)(-[0-9]+[Xx]([0-9]+))? - (.*)' ] |
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 | |
/** | |
* Explode any single-dimensional array into a full blown tree structure, | |
* based on the delimiters found in it's keys. | |
* | |
* The following code block can be utilized by PEAR's Testing_DocTest | |
* <code> | |
* // Input // | |
* $key_files = array( | |
* "/etc/php5" => "/etc/php5", |
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
/*================================================== | |
= Bootstrap 3 Media Queries = | |
==================================================*/ | |
/*========== Mobile First Method ==========*/ | |
/* Less than mobile (col-xs) */ | |
@media only screen and (min-width: 0px){ | |
} |
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 | |
interface PhilosophicalContexts { | |
/** | |
* The concept of Property | |
* @see http://www.iep.utm.edu/prop-con/ | |
*/ | |
public function Property(); | |
} | |
interface PhilosophicalTheories extends PhilosophicalContexts { | |
/** |
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 | |
print PhysicsTheories::BohmTheory(); | |
?> |
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 | |
abstract class Physics { | |
/** | |
* The Planck's law | |
* @param integer $J An integer that represent an energy measure | |
* @param integer $s An integer that represent a time measure | |
*/ | |
public static function Planck($J, $s) { | |
$h = 6.62607004 * pow(10, -34) * ($J * $s); | |
return $h; |