Skip to content

Instantly share code, notes, and snippets.

View julienXX's full-sized avatar

Julien Blanchard julienXX

View GitHub Profile
@julienXX
julienXX / molokai.vim
Created June 9, 2011 16:59
Molokai Vim theme without ugly split delimiters
" Vim color file
"
" Author: Tomas Restrepo <tomas@winterdom.com>
"
" Note: Based on the monokai theme for textmate
" by Wimer Hazenberg and its darker variant
" by Hamish Stuart Macpherson
"
hi clear
@julienXX
julienXX / .bashrc
Created May 25, 2009 12:42
My .bashrc
# Colors ----------------------------------------------------------
export TERM=xterm-color
export GREP_OPTIONS='--color=auto' GREP_COLOR='1;32'
export CLICOLOR=1
alias ls='ls -G' # OS-X SPECIFIC - the -G command in OS-X is for colors, in Linux it's no groups
#alias ls='ls --color=auto' # For linux, etc
[colors]
h1 = "red"
h2 = "#FF6347"
h3 = "green"
list = "#C71585"
text = "#FF1493"
background = "#FFC0CB"
[characters]
list = "🌼"
package main
import (
"crypto/rand"
"crypto/rsa"
"crypto/sha512"
"crypto/x509"
"encoding/pem"
"fmt"
"net/http"
fn visit_url(s: &mut Cursive, url: &str) {
s.pop_layer();
match get_data(&url) {
Ok(new_content) => {
let mut select = SelectView::new()
.h_align(HAlign::Left)
.autojump();
s.add_layer(Dialog::info(url));
//Tried something a bit brutal like to isolate the leak:
...
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0),
^{
__block BOOL notificationStillPresent;
NSUInteger notificationsCount = [[NSUserNotificationCenter defaultUserNotificationCenter] deliveredNotifications].count;
do {
notificationStillPresent = NO;
NSUInteger currentCount = [[NSUserNotificationCenter defaultUserNotificationCenter] deliveredNotifications].count;
NSLog(@"initial count %lu", (unsigned long)notificationsCount);

Sush.io is looking for developers

We're a rapidly growing startup and we are seeking to expand our team.

We are a team of 8 people divided into two offices (Paris and SF).

We develop the Sush.io solution for SMBs which are heavy users of Online Services to manage their accounting and invoicing.

We are all focused on delivering value to our customers, in a lean mindset and welcoming ideas from all the team.

pub fn rewrite_path(context: &RewriteContext,
expr_context: bool,
qself: Option<&ast::QSelf>,
path: &ast::Path,
width: usize,
offset: Indent)
-> Option<String> {
let skip_count = qself.map_or(0, |x| x.position);
let mut result = if path.global && qself.is_none() {
'use strict';
angular.module('simpleQuery', [])
.value('simpleQueryJSON', {
"some_big_json": "foo"
}
);
And in my test:
beforeEach(module('moduleFoo', 'simpleQuery'));
describe('Testing Login', function() {
beforeEach(function(){
browser().navigateTo('/');
input('login.login').enter('user');
input('login.password').enter('secure_password');
});
it('should login', function() {
element('#login').click();