- if it is needed by a command run non-interactively: .zshenv
- if it should be updated on each new shell: .zshenv
- if it runs a command which may take some time to complete: .zprofile
- if it is related to interactive usage: .zshrc
- if it is a command to be run when the shell is fully setup: .zlogin
- if it releases a resource acquired at login: .zlogout
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 | |
/** Absolute path to the WordPress directory. **/ | |
if ( !defined('ABSPATH') ) | |
define('ABSPATH', dirname(__FILE__) . '/'); | |
/** Define Environments **/ | |
$environments = array( | |
'localhost' => 'localhost', | |
'development' => '', |
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 | |
/** | |
* The base configurations of the WordPress. | |
* | |
* This file has the following configurations: MySQL settings, Table Prefix, | |
* Secret Keys, WordPress Language, and ABSPATH. You can find more information | |
* by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing | |
* wp-config.php} Codex page. You can get the MySQL settings from your web host. | |
* | |
* This file is used by the wp-config.php creation script during the |
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 | |
/** | |
* Magento | |
* | |
* NOTICE OF LICENSE | |
* | |
* This source file is subject to the Academic Free License (AFL 3.0) | |
* that is bundled with this package in the file LICENSE_AFL.txt. | |
* It is also available through the world-wide-web at this URL: | |
* http://opensource.org/licenses/afl-3.0.php |
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
FROM debian:jessie | |
ENV DNX_VERSION 1.0.0-beta8 | |
ENV DNX_USER_HOME /opt/dnx | |
RUN apt-get -qq update && apt-get -qqy install unzip curl libicu-dev libunwind8 gettext libssl-dev libcurl3-gnutls zlib1g && rm -rf /var/lib/apt/lists/* | |
RUN curl -sSL https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.sh | DNX_USER_HOME=$DNX_USER_HOME DNX_BRANCH=v$DNX_VERSION sh | |
RUN bash -c "source $DNX_USER_HOME/dnvm/dnvm.sh \ | |
&& dnvm install $DNX_VERSION -alias default -r coreclr \ |
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
import random | |
def getRandomWord(): | |
words = ["pizza", "cheese", "apples"] | |
word = words[random.randint(0, len(words)-1)] | |
return word | |
def showWord(word): | |
for character in word: | |
print(character, " ", end='') |
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
package main | |
import "fmt" | |
func main() { | |
for i := 33; i <= 122; i++ { | |
fmt.Printf("%v in Hex is %#x and in Ascii is: %#U\n", i, i, i) | |
} | |
} |
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
require('dotenv').config(); | |
const Twitter = require('twitter'); | |
let client = new Twitter({ | |
consumer_key: process.env.TWITTER_CONSUMER_KEY, | |
consumer_secret: process.env.TWITTER_CONSUMER_SECRET, | |
bearer_token: process.env.TWITTER_BEARER_TOKEN, | |
}); | |
let params = { |
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
// Holds the constant value of the kelvin tempature | |
const kelvin = 0; | |
// Convert kelvin to celsius | |
const celsius = kelvin - 273; | |
// Convert celsius to fahrenheit | |
let fahrenheit = celsius * (9/5) + 32; | |
// Rount the value from the quation to the nearest whole number. | |
fahrenheit = Math.floor(fahrenheit); | |
console.log(`The temperature is ${fahrenheit} degrees Fahrenheit.`); | |
// Convert celsius to newtons |
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
const userInput = 'Bomb'.toLowerCase(); | |
function getComputerChoice() { | |
let randomInt = Math.floor(Math.random() * 3); | |
switch (randomInt) { | |
case 0: | |
return 'rock'; | |
break; | |
case 1: | |
return 'paper'; |
OlderNewer