Skip to content

Instantly share code, notes, and snippets.

View ofavre's full-sized avatar

Olivier Favre ofavre

  • WonderPush
  • Paris, France
View GitHub Profile
@ofavre
ofavre / mvn-test.output
Last active September 3, 2015 12:36
mvn test output for elasticsearch-analysis-combo using ES 1.4.0, Lucene 4.10.2 and randomizedtesting-runner 2.1.10
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building elasticsearch-analysis-combo 1.5.2-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.3:clean (default-clean) @ elasticsearch-analysis-combo ---
[INFO] Deleting file set: /data/Yakaz/elasticsearch-analysis-combo/target (included: [**], excluded: [])
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ elasticsearch-analysis-combo ---
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building elasticsearch-action-updatebyquery 2.5.2-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ elasticsearch-action-updatebyquery ---
[INFO]
[INFO] --- maven-resources-plugin:2.3:resources (default-resources) @ elasticsearch-action-updatebyquery ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
@ofavre
ofavre / switch.css
Last active September 11, 2015 17:10
[WonderPush] Push notification subscription switch sample code
/*
* Push notification subscription switch
*/
.hide {
/* Use whichever definition suits you most */
display: none;
/*visibility: hidden*/
}
@ofavre
ofavre / AppDelegate.m
Created February 18, 2016 16:24
WonderPush iOS SDK - Manual vs automatic AppDelegate forwarding
#import <WonderPush/WonderPush.h>
// [...]
// Here is how you would use automatic AppDelegate forwarding (recommended):
//
//- (BOOL)application:(UIApplication *)application willFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// [WonderPush setClientId:@"YOUR_CLIENT_ID" secret:@"YOUR_CLIENT_SECRET"];
// [WonderPush setupDelegateForApplication:application];
@ofavre
ofavre / page.html
Created October 7, 2016 16:01
[WonderPush] Category-specific notification subscription switch sample code
<!-- With tags put inside the switch -->
<div>
Follow:
<div class="wonderpush-tag-switch" style="display: inline-block;" data-tag-field="string_categories" data-tag-value="music" data-on="Music" data-off="Music"></div>
<div class="wonderpush-tag-switch" style="display: inline-block;" data-tag-field="string_categories" data-tag-value="sport" data-on="Sport" data-off="Sport"></div>
</div>
<!-- Or with tags put outside the switch -->
<div>
<div class="wonderpush-tag-switch" style="display: inline-block;" data-tag-field="string_categories" data-tag-value="music" data-sentence="Music"></div>
<div class="wonderpush-tag-switch" style="display: inline-block;" data-tag-field="string_categories" data-tag-value="sport" data-sentence="Sport"></div>
@ofavre
ofavre / wonderpush-android-demo.dex-method-counts
Created November 17, 2017 11:28
Dex method count for WonderPush Demo Application
Processing wonderpush-android-demo/app/app-release.apk
Read in 14152 method IDs.
<root>: 14152
<default>: 1
a: 2288
a: 2288
a: 2288
a: 2288
a: 88
b: 240
@ofavre
ofavre / hide-toggl-announcement-bar.user.js
Created May 15, 2019 10:38
[UserScript] Hide Toggl announcement bar
// ==UserScript==
// @name Hide Toggl announcement bar
// @namespace https://ofavre.dev/
// @version 1.0.0
// @description Hides the annoying Toggl announcement bar that wants you to upgrade to a paid plan.
// @author Olivier Favre ([email protected])
// @match https://toggl.com/app/*
// @grant none
// ==/UserScript==