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
const netlifySitesUrl = `https://api.netlify.com/api/v1/sites`; | |
let netlifyRes = await axios.post( | |
netlifySitesUrl + `?access_token=${netlifyAccessToken}`, | |
{ | |
repo: { | |
provider: "github", | |
id: repoInfo.data.id, | |
repo: `${repoInfo.data.owner.login}/${repoInfo.data.name}`, | |
private: false, | |
branch: "master", |
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
# create keystore | |
keytool -genkey -v -keystore [somename].keystore -alias [somename] -keyalg RSA -keysize 2048 -validity 10000 | |
# follow instructions | |
# to keep things simple, use [somename] for .keystore file name and alias too | |
# same for password: just press enter on this prompt: | |
# --------------------------------------------------- | |
# Enter key password for <[somename]> | |
# (RETURN if same as keystore password): |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>TODO supply a title</title> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
</head> | |
<body> | |
<div onclick="playDogSound()">Play dog sound</div> | |
<script> |
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
Initial setup | |
1. Download Wordpress from: https://wordpress.org/download/ | |
2. Store the file in locally, unzip it, name the unzipped file to the name of your project, then put it in the xampp htdocs folder. | |
3. Create the project from existing sources in Netbeans. | |
4. Set up a database in PHPMyAdmin for Wordpress to use. | |
5. Run the project and follow the steps on the setup page to configure the project. | |
6. Log in. | |
Install theme |
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
Download Drupal at https://www.drupal.org/project/drupal | |
Unzip the compressed drupal file. | |
Rename the drupal-[version-number-goes-here] to drupal (so you can access it easier as: http://localhost/drupal). | |
Move the drupal folder to your XAMPP htdocs folder. | |
Start XAMPP and go to http://localhost/phpmyadmin/ | |
Create a new database in phpMyAdmin for your drupal sites. | |
Go to http://localhost/drupal and go through the installation process. | |
As this is just used for local development, for email address just use anything, even noreply@example.com (you can change it through Configuration > Site Information at a later time). | |
After the last step click the link "Visit your new site". | |
More: https://www.drupal.org/node/307956 |
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
The ratio in pixels between screen densities is: | |
ldpi = 1:0.75 | |
mdpi = 1:1 | |
hdpi = 1:1.5 | |
xhdpi = 1:2 | |
xxhdpi = 1:3 | |
xxxhdpi = 1:4 | |
For an image of 100X100: |
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
For setup of Gradle: | |
1. Set gradle home in env variables, i.e. GRADLE_HOME C:\gradle-[version-number-goes-here] | |
2. Put Gradle bin in PATH env variable (append it to the end with';' before it): i.e. ;C:\gradle-1.12\bin | |
3. Add Android SDK to System Variables. | |
For release: |
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
//modified from https://developer.mozilla.org/en-US/docs/Web/JavaScript/Introduction_to_Object-Oriented_JavaScript | |
//class (can also be defined as anonymous function in the form of var Person = function () {...};) | |
function Person(firstName) { | |
//property | |
this.firstName = firstName; | |
// method (using anonymous function) | |
this.skyte = function() { | |
return "I'll be famous some day. Remember my name: " + firstName + "!"; | |
} |
NewerOlder