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
<?xml version="1.0" encoding="UTF-8" ?> | |
<Hotels> | |
<Hotel Stars="****"> | |
<Name>Harbor View Inn</Name> | |
<Contact> | |
<Phone>(805)963-0780</Phone> | |
<Email>contact@harborviewinn.com</Email> | |
</Contact> | |
<Address BusLines="R2"> | |
<Number>28</Number> |
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 math | |
import sys | |
import time | |
import random | |
import requests | |
from PIL import Image | |
from requests.adapters import HTTPAdapter | |
img = Image.open(sys.argv[1]) |
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 math | |
def sig(x): | |
return 1 / (1 + math.exp(-x)) | |
b = [0,1] | |
# INPUT WEIGHTS # | |
w1 = [ 2, 1,-3,-4,-4, 4] |
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
## Quicksort | |
def swap(array,i,j): | |
temp = array[i] | |
array[i] = array[j] | |
array[j] = temp | |
def partition(array, start,end): | |
print('->P(',start,end,')') | |
x = array[end] |
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
#include <iostream> | |
using namespace std; | |
class Queue { // Class definition | |
private: //private members can only be accessed in the class | |
int queue_size; | |
protected: // protected members can ba accessed in derived classes | |
int* buffer; // pointer to first element of array | |
int front; // used for removing an element of array | |
int rear; // user for adding an element into queue |
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
void sortStrings(char strings[NUM_STRINGS][STRING_LENGTH]){ | |
for (int i = 0; i < NUM_STRINGS-1 ; i++){ | |
for (int j = 0; j < NUM_STRINGS-i-1; j++){ | |
if (strcmp(strings[j],strings[j+1])>0) {swapStrings(strings[j], strings[j + 1]); | |
}}}} |
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
Verifying that +nidhalselmi is my blockchain ID. https://onename.com/nidhalselmi |
NewerOlder