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 | |
$jsondata = file_get_contents("books.json"); | |
$json = json_decode($jsondata, true); | |
include('dbconnection.php'); | |
foreach($json['books'] as $key => $value){ | |
$array = array(); | |
foreach($value as $prop){ | |
array_push($array, "'". $prop ."'"); | |
} | |
$a = implode(' ,', $array); |
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
( | |
\project_{age}( | |
\select_{pizza='mushroom'}(Person\join Eats) | |
) | |
) | |
\diff | |
( | |
\project_{age1} | |
( | |
( |
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
/* Flawed as assumes 2 pizzas eaten by those over 30 should be free from this */ | |
(\project_{pizzeria}( | |
\rename_{pizza}( // renames as Pizza so they can then be joined with Serves to collect the Pizzeria | |
\project_{pizza1}( // take only first pizza | |
\select_{pizza1 < pizza2}(( // gives one column for pizza 1 and a collumn for pizza 2 | |
\rename_{pizza1}( // need to rename to be able to do cross product | |
\project_{pizza}(( | |
\project_{pizza}(( // Select pizzas from table with pizzas eaten by people over 30 |
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
asyncFind(query) { | |
this.isLoading = true | |
this.usersOrGroups = [] | |
// let response = OC.linkToOCS('cloud', 2) + 'groups?search=' + query | |
api.get(OC.linkToOCS('cloud', 2) + 'groups?search=' + query, 2).then(response => { | |
console.log(response) // eslint-disable-line | |
this.usersOrGroups.push(response) | |
this.isLoading = false | |
}) | |
console.log(this.usersOrGroups) // eslint-disable-line |
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
# This is a number guess game.py | |
import random | |
print("Hey, whats your name") | |
name = input() | |
print("Choose your difficulty by entering 1 = easy, 2 = normal, 3 = hard") | |
game = int(input()) | |
while game > 3 or game < 1: | |
print("error, please enter a number between 1 and 3") | |
game = int(input()) |
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 time | |
import json | |
from http.server import BaseHTTPRequestHandler, HTTPServer | |
HOST_NAME = 'localhost' # !!!REMEMBER TO CHANGE THIS!!! | |
PORT_NUMBER = 9000 | |
class MyHandler(BaseHTTPRequestHandler): |
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
Hi everyone! I will try to explain all the possibilities here. I will stick to free and community led options. | |
Let's start with the mentorship programs! We'll dive into the Berlin learning meetups and groups right after. I will also share | |
some other recourses that can get you free conference tickets etc. at the end. | |
"Learn it, Girl" | |
Links: https://www.learnitgirl.com/, https://www.facebook.com/learnitgirl | |
A global free program where you sign up and you get a personal mentor that will guide you and work with you for 3 months. | |
You can pick a project and a programming language if you have an idea for it, or if you don't know where to start, they will |