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
importers = [ | |
X2::StudentsImporter.new(mods: [ | |
SomervilleHouseMod.new(), | |
]) | |
X2::X2AssessmentImporter.new(), | |
X2::BehaviorImporter.new(), | |
X2::EducatorsImporter.new(), | |
X2::AttendanceImporter.new(), | |
X2::CoursesSectionsImporter.new(), | |
X2::StudentSectionAssignmentsImporter.new(), |
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
function randomizeVoice(text, callback) { | |
const voices = window.speechSynthesis.getVoices(); | |
const words = text.split(' '); | |
sayWords(words, voices, callback); | |
} | |
function sayWords(words, voices, callback) { | |
if (words.length === 0) return callback(); | |
var voice = voices[Math.round(Math.random() * voices.length)]; | |
sayWord(words[0], voice, () => sayWords(words.slice(1), voices)); |
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
$ bundle exec derailed bundle:objects | |
Measuring objects created by gems in groups [:default, "production"] | |
Total allocated: 29393076 bytes (218047 objects) | |
Total retained: 3032934 bytes (23234 objects) | |
allocated memory by gem | |
----------------------------------- | |
16638248 activesupport-4.2.6 | |
6359714 sass-3.4.22 | |
1447100 actionpack-4.2.6 |
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
$ bundle exec derailed bundle:mem | |
TOP: 43.7344 MiB | |
rails/all: 15.9414 MiB | |
active_record/railtie: 7.4727 MiB | |
active_record: 6.2617 MiB (Also required by: orm_adapter/adapters/active_record) | |
arel: 3.6094 MiB (Also required by: active_record/base) | |
arel/nodes: 1.375 MiB | |
arel/visitors: 1.2969 MiB | |
arel/visitors/to_sql: 0.5234 MiB | |
active_record/connection_adapters/abstract_adapter: 1.2148 MiB |
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
/* @flow */ | |
// Modeled after https://github.com/facebook/flow/issues/1664#issuecomment-222934455 | |
type AnimalT = { | |
id: number, | |
name: string | |
}; | |
type CatT = AnimalT & { | |
isPurring: bool | |
}; | |
type DogT = AnimalT & { |
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
WORKING_DIR=~/Desktop # or whatever | |
du -a tensorflow > $WORKING_DIR/du-out.txt | |
cat $WORKING_DIR/du-out.txt \ | |
| grep -v node_modules \ | |
| grep -v tensorboard/ \ | |
| grep -v examples/ \ | |
| grep -v models/ \ | |
| grep -v tools/ \ | |
| grep -v g3doc/ \ | |
> $WORKING_DIR/du-out-stripped.txt |
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
REGISTER_OP("Assign") | |
.Input("ref: Ref(T)") | |
.Input("value: T") | |
.Output("output_ref: Ref(T)") | |
.Attr("T: type") | |
.Attr("validate_shape: bool = true") | |
.Attr("use_locking: bool = true") | |
.SetAllowsUninitializedInput() |
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 { | |
name: "W" | |
op: "Const" | |
attr { | |
key: "dtype" | |
value { | |
type: DT_FLOAT | |
} | |
} | |
attr { |
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
W = tf.Variable(tf.zeros([784, 10], name="W")) |
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 { | |
name: "Variable/Assign" | |
op: "Assign" | |
input: "Variable" | |
input: "a" | |
attr { | |
key: "T" | |
value { | |
type: DT_FLOAT | |
} |
NewerOlder