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
class CracklePop(object): | |
def __init__(self, left, right): | |
self.left = left # Left index | |
self.right = right # Right index | |
# Private methods | |
def valid_bounds(self): | |
""" | |
Checks that the left and right bounds |
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
Error: No such file or directory @ rb_sysopen - /Users/Jorge/hdhfghfg |
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
[core] | |
repositoryformatversion = 0 | |
filemode = true | |
bare = false | |
logallrefupdates = true | |
ignorecase = true | |
precomposeunicode = true | |
[remote "origin"] | |
url = https://gitlab.com/ferreiro/new-dotfiles.git | |
pushurl = https://gitlab.com/ferreiro/new-dotfiles.git |
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
node * insert(node * root, int value) { | |
if (!root){ | |
node *newLeaf; | |
newLeaf->data = value; | |
newLeaf->left = NULL; | |
newLeaf->right = NULL; | |
root = newLeaf; | |
} | |
else { |
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 pandas as pd | |
import numpy as np | |
import csv as csv | |
# Filesname | |
output_file = 'emails.txt' | |
file_descriptor = open(output_file, 'w') | |
df = pd.read_csv('registers.csv', header=0) # Load the test file into a dataframe | |
df = df.drop(["#","name","experience","start","submit","network"], axis=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
/* The API controller | |
Exports 3 methods: | |
* post - Creates a new thread | |
* list - Returns a list of threads | |
* show - Displays a thread and its posts | |
*/ | |
var Thread = require('../models/thread.js'); | |
var Post = require('../models/post.js'); |
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 sys | |
elements = [] | |
total_cases = int(input()) | |
for i in range(0, total_cases): | |
db_size = int(input()) | |
for j in range(0, db_size): |
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
# UdacityDownload.py | |
# Python 2.7.6 | |
""" | |
Python script to download course content from udacity courses | |
- Creates folders as per course names | |
- Downloads all the zip files | |
- Extract content from zip file | |
- Finally delete the zip file | |
Multiple course content can be downloaded from list |
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
# python version: 3 | |
# how to execute? In a bash shell: python3 problem1.py < testCases.txt > testCases.mio | |
import sys | |
total_cases = int(input()) # reads the total cases from stdin | |
solution = "" | |
for i in range(0, total_cases): |
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; | |
const int MAX_DB_SIZE = 10000; | |
struct Car { | |
string name; | |
int lowPrice; | |
int highPrice; | |
}; |