Skip to content

Instantly share code, notes, and snippets.

View catchmrbharath's full-sized avatar

Bharath Mankalale catchmrbharath

View GitHub Profile

Keybase proof

I hereby claim:

  • I am catchmrbharath on github.
  • I am mrbharath (https://keybase.io/mrbharath) on keybase.
  • I have a public key ASBtza7YEW6tVi_u4h_fUQejEhCa8k1V9qK1M9UI0pB00wo

To claim this, I am signing this object:

#include<stdio.h>
#include<ctype.h>
#include<stdlib.h>
#define MAXOP 100
#define NUMBER '0'
#define MAXVAR 26
#define BUFFSIZE 100
#define MAXVAL 100
int getop(char s[]);
double pop(void);
Unsupported test type wdspec for product servo
▶ Unexpected subtest result in /html/dom/interfaces.html:
│ FAIL [expected PASS] Window interface: attribute status
│ → assert_own_property: The global object must have a property "status" expected property "status" missing
│ IdlInterface.prototype.test_member_attribute/<@http://web-platform.test:8000/resources/idlharness.js:1083:13
│ Test.prototype.step@http://web-platform.test:8000/resources/testharness.js:1397:20
│ test@http://web-platform.test:8000/resources/testharness.js:495:9
│ IdlInterface.prototype.test_member_attribute@http://web-platform.test:8000/resources/idlharness.js:1067:5
│ IdlInterface.prototype.test_members@http://web-platform.test:8000/resources/idlharness.js:1349:17
Users/bharathmr/pr/servo/components/script/dom/window.rs:165:5: 165:28 error: no method named `trace` found for type `core::cell::Cell<dom::bindings::str::DOMString>` in the current scope
/Users/bharathmr/pr/servo/components/script/dom/window.rs:165 status: Cell<DOMString>,
^~~~~~~~~~~~~~~~~~~~~~~
/Users/bharathmr/pr/servo/components/script/dom/window.rs:165:5: 165:28 note: in this expansion of #[derive_JSTraceable] (defined in /Users/bharathmr/pr/servo/components/script/dom/window.rs)
/Users/bharathmr/pr/servo/components/script/dom/window.rs:165:5: 165:28 note: the method `trace` exists but the following trait bounds were not satisfied: `dom::bindings::str::DOMString : core::marker::Copy`
/Users/bharathmr/pr/servo/components/script/dom/window.rs:165:5: 165:28 help: items from traits can only be used if the trait is implemented and in scope; the following trait defines an item `trace`, perhaps you need to implement it:
/Users/bharathmr/pr/s
pub struct WorkerHandler {
addr: TrustedWorkerAddress,
data: *mut u64,
nbytes: size_t
}
impl WorkerHandler {
fn new(addr: TrustedWorkerAddress, data: *mut u64, nbytes: size_t) -> WorkerHandler {
WorkerHandler {
addr: addr,
main.rs:2:5: 2:23 error: unresolved import `lib::hex_to_base64`. There is no `hex_to_base64` in `lib`
main.rs:2 use lib::hex_to_base64;
@catchmrbharath
catchmrbharath / error
Created December 19, 2014 08:55
Error
error: linking with `cc` failed: exit code: 1
note: cc '-m64' '-L' '/Users/bmankala/.servo/rust/3dcd2157403163789aaf21a9ab3c4d30a7c6494d/rust-0.13.0-dev-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib' '-o' '/Users/bmankala/pr/rust_projects/servo/components/servo/target/servo' '/Users/bmankala/pr/rust_projects/servo/components/servo/target/servo.o' '-Wl,-force_load,/Users/bmankala/.servo/rust/3dcd2157403163789aaf21a9ab3c4d30a7c6494d/rust-0.13.0-dev-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libmorestack.a' '-Wl,-dead_strip' '-nodefaultlibs' '/Users/bmankala/pr/rust_projects/servo/components/servo/target/deps/libglfw_app-794b198c7afecc4d.rlib' '/Users/bmankala/pr/rust_projects/servo/components/servo/target/deps/libglfw-0fe09eeb0e447723.rlib' '/Users/bmankala/pr/rust_projects/servo/components/servo/target/deps/libsemver-dd25c811d0e0fb2d.rlib' '/Users/bmankala/pr/rust_projects/servo/components/servo/target/libservo-4d36af6e7d1b957e.rlib' '/Users/bmankala/pr/rust_projects/servo/components/ser
// add this to <profile>/static/custom/custom.js to load vim keybindings:
$.getScript("/static/components/codemirror/keymap/vim.js", function() {
if (! IPython.Cell) return;
IPython.Cell.options_default.cm_config.keyMap = "vim";
});

Description

You are given N strings and you have to sort the strings according to the following rules.

  • S1 < S2 if S1 has fewer vowels than S2.
  • If the number of vowels are equal then, S1 < S2 if S1 has fewer number of words.
  • If both the above are tied, then the string with the longest word is greater.
  • else the strings are equal.