Skip to content

Instantly share code, notes, and snippets.

View ahmedalani's full-sized avatar
🎯
Data Structures and Algorithms

Ahmed Alani ahmedalani

🎯
Data Structures and Algorithms
View GitHub Profile
**Privacy Policy**
inanna-land built the inannaop app as a Free app. This SERVICE is provided by inanna-land at no cost and is intended for use as is.
This page is used to inform visitors regarding our policies with the collection, use, and disclosure of Personal Information if anyone decided to use our Service.
If you choose to use our Service, then you agree to the collection and use of information in relation to this policy.
**Information Collection and Use**
<!DOCTYPE HTML>
<html>
<head>
<style>
body {
margin: 0px;
padding: 0px;
}
</style>
</head>
<!DOCTYPE html>
<html>
<head>
<title>Edit Product</title>
</head>
<body>
<form action="/products/<%= product.id %>" method="POST">
<p>
<label for="product-id">ID</label>
@ahmedalani
ahmedalani / musicLibraryPart2
Created September 7, 2017 03:50
added all the functions to the library object
var library = {
tracks: { t01: { id: "t01",
name: "Code Monkey",
artist: "Jonathan Coulton",
album: "Thing a Week Three" },
t02: { id: "t02",
name: "Model View Controller",
artist: "James Dempsey",
album: "WWDC 2003"},
t03: { id: "t03",
@ahmedalani
ahmedalani / diceRoll
Created September 5, 2017 19:52
rolling a dice
var arg = process.argv[2];
function random(min, max){
return Math.floor(Math.random() * (max - min + 1)) + min;
}
function diceRoll(arg) {
var rolles = [];
for (var i = 0; i < arg; i++) {
// var randomNumber = Math.floor(Math.random() * 6) + 1;