Easy peasy parallax effect
A Pen by Daniel Riemer on CodePen.
| <?php | |
| class Struct | |
| { | |
| /** | |
| * Define a new struct object, a blueprint object with only empty properties. | |
| */ | |
| public static function factory() | |
| { | |
| $struct = new self; | |
| foreach (func_get_args() as $value) { |
| fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
| fastcgi_param QUERY_STRING $query_string; | |
| fastcgi_param REQUEST_METHOD $request_method; | |
| fastcgi_param CONTENT_TYPE $content_type; | |
| fastcgi_param CONTENT_LENGTH $content_length; | |
| fastcgi_param SCRIPT_NAME $fastcgi_script_name; | |
| fastcgi_param REQUEST_URI $request_uri; | |
| fastcgi_param DOCUMENT_URI $document_uri; | |
| fastcgi_param DOCUMENT_ROOT $document_root; |
| # Please paste to folder common/common.conf | |
| index index.html index.htm; | |
| error_page 500 502 503 504 /50x.html; | |
| location = /50x.html { | |
| root html; | |
| } | |
| #location ~ \.(js|ico|gif|jpg|png|css|rar|zip|tar\.gz)$ { } |
| server { | |
| index index.php; | |
| set $basepath "/var/www"; | |
| set $domain $host; | |
| # check one name domain for simple application | |
| if ($domain ~ "^(.[^.]*)\.dev$") { | |
| set $domain $1; | |
| set $rootpath "${domain}"; |
| #! /bin/bash | |
| MYSQL="/opt/local/etc/LaunchDaemons/org.macports.mysql5/mysql5.wrapper" | |
| NGINX="/opt/local/sbin/nginx" | |
| PHPFPM="/opt/local/sbin/php-fpm" | |
| PIDPATH="/opt/local/var/run" | |
| MEMCACHED="/opt/local/bin/memcached -m 24 -P /opt/local/var/run/memcached.pid -u root" | |
| if [ $1 = "start" ]; then | |
| sudo $MYSQL start | |
| echo "Starting php-fpm ..." |
| <!doctype html> | |
| <script> | |
| if ("WebSocket" in window) { | |
| var ws = new WebSocket("ws://127.0.0.1:31339"); | |
| ws.onopen = function() { | |
| console.log('connected'); | |
| }; | |
| ws.onerror = function(e) { |
Easy peasy parallax effect
A Pen by Daniel Riemer on CodePen.
| server { | |
| listen 80; | |
| server_name example.com; | |
| root d:/webs/example.com/www; | |
| index index.php index.html; | |
| try_files $uri $uri/ /index.php?$args; | |
| location ~ \.phpt?$ { | |
| try_files $uri @missing; |
| <?php | |
| /** | |
| * The MIT License (MIT) | |
| * | |
| * Copyright (c) Ozgur (Ozzy) Giritli <[email protected]> | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining a copy | |
| * of this software and associated documentation files (the "Software"), to deal | |
| * in the Software without restriction, including without limitation the rights |
| [alias] | |
| ; creates timestamped branch rst-XXXXX and pushes it to default remote (origin) | |
| rst = "!rst() { export tmpBranch=rst-$(date +%s) && git add -A && git checkout -b $tmpBranch && git commit -m 'WIP remote stash' && git push --set-upstream origin $tmpBranch; }; rst" |