Skip to content

Instantly share code, notes, and snippets.

View martiansideofthemoon's full-sized avatar

Kalpesh Krishna martiansideofthemoon

View GitHub Profile
import random
with open('words.txt', 'r') as f:
data = f.readlines()
random.shuffle(data)
repeat_limit = 0
start = random.randint(0, len(data) - 1)
data1 = data[:start]

Keybase proof

I hereby claim:

  • I am martiansideofthemoon on github.
  • I am martianwars (https://keybase.io/martianwars) on keybase.
  • I have a public key whose fingerprint is 50D1 8319 3EDA 0575 E8D5 84CB 84CD 9C36 5D52 16C6

To claim this, I am signing this object:

var app = angular.module('wptview', []);
app.directive('customOnChange', function() {
return {
restrict: 'A',
link: function (scope, element, attrs) {
var onChangeHandler = scope.$eval(attrs.customOnChange);
element.bind('change', onChangeHandler);
}
Compiling script v0.0.1 (file:///home/kalpesh/Projects/servo/components/servo)
Compiling layout_traits v0.0.1 (file:///home/kalpesh/Projects/servo/components/servo)
Compiling compositing v0.0.1 (file:///home/kalpesh/Projects/servo/components/servo)
/home/kalpesh/Projects/servo/components/script/dom/htmlelement.rs:7:5: 7:79 error: unresolved import `dom::bindings::codegen::Bindings::EventHandlerBinding::EventHandlerNonNull`. There is no `EventHandlerNonNull` in `dom::bindings::codegen::Bindings::EventHandlerBinding` [E0432]
/home/kalpesh/Projects/servo/components/script/dom/htmlelement.rs:7 use dom::bindings::codegen::Bindings::EventHandlerBinding::EventHandlerNonNull;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/kalpesh/Projects/servo/components/script/dom/htmlelement.rs:7:5: 7:79 help: run `rustc --explain E0432` to see a detailed explanation
/home/kalpesh/Projects/servo/components/script/dom/xml
4:54.64 INPUT("../../modules/zlib/src/inffast.o")
4:54.64 INPUT("../../modules/zlib/src/inflate.o")
4:54.64 INPUT("../../modules/zlib/src/inftrees.o")
4:54.64 INPUT("../../modules/zlib/src/trees.o")
4:54.64 INPUT("../../modules/zlib/src/uncompr.o")
4:54.64 INPUT("../../modules/zlib/src/zutil.o")
4:54.64 INPUT("StaticXULComponentsEnd/StaticXULComponentsEnd.o")
4:54.64
4:54.64 ../../build/unix/gold/ld: error: /home/kalpesh/Projects/mozilla-central/obj-x86_64-unknown-linux-gnu/toolkit/library/../../gfx/layers/Unified_cpp_gfx_layers4.o: file is empty