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
| <a href="#" class="btn" onclick="PrintContent()"><i class="icon-print icon-white"></i> drucken</a> | |
| <script type="text/javascript"> | |
| function PrintContent() | |
| { | |
| var DocumentContainer = document.getElementById('printable'); | |
| var WindowObject = window.open("", "PrintWindow","width=750,height=650,top=50,left=50,toolbars=no,scrollbars=yes,status=no,resizable=yes"); | |
| WindowObject.document.writeln('<link rel="stylesheet" type="text/css" href="/css/bootstrap3.2.0.min.css" media="all" />'); | |
| WindowObject.document.writeln('<link rel="stylesheet" type="text/css" href="/css/override.css" media="all" />'); | |
| WindowObject.document.writeln('<link rel="stylesheet" type="text/css" href="/css/print.css" media="all" />'); |
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
| module.exports = function(grunt) { | |
| /* | |
| * install grunt global: | |
| * $ npm install -g grunt-cli | |
| * | |
| * install dependencies from package.json (must run in project dir!) | |
| * $ npm install | |
| */ |
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
| #copy local file to a remote target by scp | |
| scp /home/user/sourcefolder\file.name user@192.168.178.1:/home/user/targetfolder |
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
| <?php | |
| // demo soap client 4 wsdl2php gen | |
| // http://php.net/manual/de/soapclient.getlastresponseheaders.php | |
| // http://php.net/manual/de/class.soapclient.php | |
| ini_set("soap.wsdl_cache_enabled", "0"); | |
| include 'demo.php'; | |
| $client = new demo("demo.wsdl",array('location' => "http://www.example.com/webservices/", 'uri' => "http://www.example.com/webservices/", 'trace' => true)); |
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
| /* | |
| * Bootstrap Custom Styles | |
| * | |
| */ | |
| body { | |
| background-color: #fff; | |
| color: #000; | |
| /*font-size: 15px; | |
| line-height: 1.45857;*/ |
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
| <?php | |
| class helper { | |
| /** | |
| * @param mixed $obj | |
| * @return array $obj | |
| */ | |
| public static function getArray($obj) { | |
| if (is_array($obj)) return $obj; | |
| if ($obj != null) return array($obj); | |
| else return array(); |
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 db | |
| mysql -uroot --password -e "CREATE DATABASE dbname CHARACTER SET utf8 COLLATE utf8_general_ci" | |
| #import db | |
| mysql --user=root --password -h localhost dbname < /db.sql | |
| #import gzipped db | |
| zcat db.sql.gz | mysql --user=root --password -h localhost dbname | |
| #dumb db |
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
| <!doctype html> | |
| <html ng-app="project"> | |
| <head> | |
| <title>Angular: Service example</title> | |
| <script src="http://code.angularjs.org/angular-1.0.1.js"></script> | |
| <script> | |
| var projectModule = angular.module('project',[]); | |
| projectModule.factory('theService', function() { | |
| return { |
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
| # Apache: | |
| # Set up http://mydomain.com/data to route to NodeJS at port 3000 on the same machine. | |
| # | |
| # Do this in your .conf file: | |
| <Location /data> | |
| ProxyPassReverse http://localhost:3000/data | |
| ProxyPass http://localhost:3000/data | |
| </Location> |
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
| #!/usr/bin/env bash | |
| # Configurable variables | |
| database='vagrant' | |
| username='vagrant' | |
| password='vagrant' | |
| echo '' | |
| echo ' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~' | |
| echo ' Bootstrapping Ubuntu Precise 32bit for Laravel 4' |