Skip to content

Instantly share code, notes, and snippets.

View atamanroman's full-sized avatar
😏

Roman Ataman atamanroman

😏
View GitHub Profile
describe('getBooks()', () => {
it('should return the whole list of books with an Observable', (done) =>
inject([BookStaticAsyncDataService], (service: BookStaticAsyncDataService) => {
service.getBooks().subscribe(b => {
expect(b.length).toBe(3);
done();
});
})());
});

Keybase proof

I hereby claim:

  • I am atamanroman on github.
  • I am atamanroman (https://keybase.io/atamanroman) on keybase.
  • I have a public key whose fingerprint is D97C 9709 94BD FA86 4C05 15F3 7116 07F1 B0B7 2629

To claim this, I am signing this object:

@atamanroman
atamanroman / active-property-on-link-to.js
Last active February 16, 2017 17:22
Examples around ember.js {{link-to}} and its active state
@atamanroman
atamanroman / Gmail uploader
Created July 20, 2012 18:25 — forked from pedromg/Gmail uploader
Ruby script to import mails to gmail
#! /usr/bin/ruby
##
# == remember:
# * insert your login and password at Line 100, and save this file.
# * of couse, be very carefull if you send this to a friend... REMOVE your credentials first!
# * if you are using Google Hosted for your Domain (Google Apps), your_login is something like: me@mydomain.com
# * example: go = GoGmail.new($*[0], 'imap.gmail.com', 993, $*[1], 'tree@forest.org', 'littlebird', $*[2])
#
# == usage:
@atamanroman
atamanroman / req-new-broken.java
Last active October 1, 2015 23:58
Broken use of REQUIRES_NEW
@Singleton
public class Importer {
@EJBContext
private EJBContext ctx;
private ConcurrentLinkedQueue queue = new ...
private AtomicBoolean isRunning = false;
public void add(ImportItem itm) {
queue.offer(item);