Udate /etc/hosts or c:\windows\system32\drivers\etc\hosts file so that the new servername is mapped to 127.0.0.1
Apache config file changes document root
DocumentRoot "/Users/hoan/www"
<Directory "/Users/hoan/www">
#
| Available commands: | |
| clear-compiled Remove the compiled class file | |
| down Put the application into maintenance mode | |
| env Display the current framework environment | |
| help Displays help for a command | |
| inspire Display an inspiring quote | |
| list Lists commands | |
| migrate Run the database migrations | |
| optimize Cache the framework bootstrap files | |
| serve Serve the application on the PHP development server |
| RUN apt update | |
| RUN apt upgrade -y | |
| RUN apt install -y apt-utils | |
| RUN a2enmod rewrite | |
| RUN apt install -y libmcrypt-dev | |
| RUN docker-php-ext-install mcrypt | |
| RUN apt install -y libicu-dev | |
| RUN docker-php-ext-install -j$(nproc) intl | |
| RUN apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng12-dev | |
| RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ |
| function getRotationAngle(target) | |
| { | |
| const obj = window.getComputedStyle(target, null); | |
| const matrix = obj.getPropertyValue('-webkit-transform') || | |
| obj.getPropertyValue('-moz-transform') || | |
| obj.getPropertyValue('-ms-transform') || | |
| obj.getPropertyValue('-o-transform') || | |
| obj.getPropertyValue('transform'); | |
| let angle = 0; |
Udate /etc/hosts or c:\windows\system32\drivers\etc\hosts file so that the new servername is mapped to 127.0.0.1
Apache config file changes document root
DocumentRoot "/Users/hoan/www"
<Directory "/Users/hoan/www">
#
@interface MyViewController : UIViewController<UIScrollViewDelegate>
@end
Then you can hook to the UIScrollView:
- (void)viewDidLoad
{
[super viewDidLoad];
// Set self as scroll view protocol
webView.scrollView.delegate = self;
| # Gem 'bcrypt-ruby' | |
| # Generate User model with password_digest field | |
| class User < ActiveRecord::Base | |
| has_secure_password | |
| attr_accessible :email, :name, :password, :password_confirmation | |
| before_save { self.email.downcase! } | |
| VALID_EMAIL_REGEX = /\A[\w+\-.]+@[a-z\d\-.]+\.[a-z]+\z/i | |
| validates :email, presence: true, uniqueness: {case_sensitive: false}, | |
| length: {maximum: 50}, format: { with: VALID_EMAIL_REGEX } | |
| validates :name, presence: true, uniqueness: true |
| #!/bin/bash | |
| # Stop all containers | |
| docker stop $(docker ps -a -q) | |
| # Delete all containers | |
| docker rm $(docker ps -a -q) | |
| # Delete all images | |
| docker rmi $(docker images -q) |
| /* | |
| html2canvas 0.4.0 <http://html2canvas.hertzen.com> | |
| Copyright (c) 2013 Niklas von Hertzen (@niklasvh) | |
| Released under MIT License | |
| */ | |
| (function(window, document, undefined){ | |
| "use strict"; |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <persistence version="1.0" | |
| xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://java.sun.com/xml/ns/persistence | |
| http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"> | |
| <persistence-unit name="shop"> | |
| <provider> | |
| org.apache.openjpa.persistence.PersistenceProviderImpl |
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <groupId>com.hoan</groupId> | |
| <artifactId>Shop</artifactId> | |
| <packaging>war</packaging> | |
| <version>1.0-SNAPSHOT</version> | |
| <name>Shop Maven Webapp</name> | |
| <url>http://maven.apache.org</url> |