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
Open Git Bash. | |
Change the current working directory to your local project. | |
Initialize the local directory as a Git repository. | |
-> git init | |
Add the files in your new local repository. This stages them for the first commit. | |
-> git add . |
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
Function Get-MP3MetaData | |
{ | |
[CmdletBinding()] | |
[Alias()] | |
[OutputType([Psobject])] | |
Param | |
( | |
[String] [Parameter(Mandatory=$true, ValueFromPipeline=$true)] $Directory | |
) |
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> | |
<script> | |
var videos = ["https://www.youtube.com/embed/9bZkp7q19f0", "https://www.youtube.com/embed/dQw4w9WgXcQ"]; | |
window.onload = function () { | |
var playerDiv = document.getElementById("random_player"); | |
var player = document.createElement("IFRAME"); | |
var randomVideoUrl = videos[Math.floor(Math.random() * videos.length)]; |
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
# import | |
import os | |
from os import path, listdir as list_dir, rename as move | |
from os.path import isdir as is_dir, isfile as is_file | |
from pprint import pprint | |
import shutil | |
# global variables | |
#================== |
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
using System; | |
using System.Configuration; | |
using System.Linq; | |
using System.Reflection; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using log4net; | |
namespace Watson.Integration | |
{ |
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
Mount Disk and mapped to the site . This Test at Apache2 | |
1. sudo mkdir /mountLocation | |
2. sudo mount /dev/whatever /mountLocation | |
3. Locate the dir to the apanche2 config <Directory> | |
Config | |
</Directory> | |
4. At the Site config file Add Aliens | |
Alias "/DirName/" "/Location/" |
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
<?php | |
// Array with names | |
$a[] = "Anna"; | |
$a[] = "Brittany"; | |
$a[] = "Cinderella"; | |
$a[] = "Diana"; | |
$a[] = "Eva"; | |
$a[] = "Fiona"; | |
$a[] = "Gunda"; | |
$a[] = "Hege"; |
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
<html> | |
<head> | |
<script> | |
//create array that will hold all ordered products | |
var shoppingCart = []; | |
//this function manipulates DOM and displays content of our shopping cart | |
function displayShoppingCart(){ | |
var orderedProductsTblBody=document.getElementById("orderedProductsTblBody"); | |
//ensure we delete all previously added rows from ordered products table |
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
//use of callbacks | |
var http = require('http'); | |
var fs = require('fs'); | |
http.createServer(function(req,res){ | |
if(req.url== '/') | |
{ | |
fs.readFile('title.json',function(err,data){ |
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
<?php | |
$servername = "localhost"; | |
$username = "root"; | |
$password = ""; | |
$dbname = "try"; | |
$name = $_POST["name"]; | |
// Create connection |