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
struct l { | |
struct l* next; | |
int value; | |
}; | |
int main(void) { | |
struct l elems[300]; | |
int i; | |
for (i=0; i<300; i++) { |
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
set Sentences; | |
set Characters; | |
param contains{s in Sentences, c in Characters}; | |
var chosen{s in Sentences} binary; | |
minimize size: sum{s in Sentences} chosen[s]; | |
s.t. all_characters_covered{c in Characters}: sum{s in Sentences} contains[s, c] * chosen[s] >= 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
$(document).ready(function() { $('#link_2419545_2267655').data('sentenceId',2419545);$('#link_2419545_2267665').data('translationId',2267665);}); |
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 csv | |
[…] | |
with open('sentences.csv', 'rb') as fh: | |
reader = csv.reader(fh, [… some options might be necessary …]) | |
# at this point `reader` is an iterator that returns tuples | |
for sentence_id, language, sentence in reader: | |
if language == 'cmn': # for example, let's print all chinese sentences | |
print sentence |
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
{ | |
"metadata": { | |
"name": "" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ | |
{ |