Skip to content

Instantly share code, notes, and snippets.

View lpellegr's full-sized avatar
Enjoying life every second of the day

Laurent Pellegrino lpellegr

Enjoying life every second of the day
View GitHub Profile
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:fab="http://schemas.android.com/apk/res-auto"
android:background="@color/background"
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.getbase.floatingactionbutton.AddFloatingActionButton
android:id="@+id/normal_plus"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
@lpellegr
lpellegr / Roboto.java
Last active August 29, 2015 14:13
Roboto
import android.content.Context;
import android.graphics.Typeface;
import android.os.Build;
import android.support.annotation.IdRes;
import android.view.View;
import android.widget.TextView;
import java.lang.ref.SoftReference;
import java.util.HashMap;
- waiting for device -
--------- beginning of main
I/installd( 0): installd firing up
W/auditd ( 924): type=2000 audit(0.0:1): initialized
I/auditd ( 924): type=1403 audit(0.0:2): policy loaded auid=4294967295 ses=4294967295
W/auditd ( 924): type=1404 audit(0.0:3): enforcing=1 old_enforcing=0 auid=4294967295 ses=4294967295
I/qemu-props( 0): connected to 'boot-properties' qemud service.
I/qemu-props( 0): receiving..
I/qemu-props( 0): received: persist.sys.language=
I/qemu-props( 0): receiving..
emulator: found SDK root at /home/lpellegr/Dev/android-sdk
emulator: Android virtual device file at: /home/lpellegr/.android/avd/screenshots.ini
emulator: virtual device content at /home/lpellegr/.android/avd/screenshots.avd
emulator: virtual device config file: /home/lpellegr/.android/avd/screenshots.avd/config.ini
emulator: using core hw config path: /home/lpellegr/.android/avd/screenshots.avd/hardware-qemu.ini
emulator: Found AVD target API level: 21
emulator: Read property file at /home/lpellegr/Dev/android-sdk/system-images/android-21/google_apis/x86//build.prop
emulator: No boot.prop property file found.
emulator: keyset loaded from: /home/lpellegr/.android/default.keyset
emulator: trying to load skin file '/home/lpellegr/Dev/android-studio/plugins/android/lib/device-art-resources/nexus_6/layout'
@lpellegr
lpellegr / querydsl.gradle
Created February 1, 2016 20:36 — forked from alex-shpak/querydsl.gradle
Gradle script for querydsl-apt processor with separate classpath
// apply plugin: 'idea'
sourceSets {
generated.java
main.java.srcDirs += generated.java.srcDirs
}
configurations {
querydslapt
}
#!/bin/bash
# crontab -> 04 12 * * 1-5 /home/lpellegr/scripts/lunch-time.sh
declare -a sentences=(
"Qui a faim ? on mange ?"
"Miam Miam ?"
"Manger ? http://goo.gl/SNKIEA")
function ask_for_lunch {
2016/07/01 20:10:55 akmods: Building RPM using the command '/sbin/akmodsbuild --target x86_64 --kernels 4.6.3-300.fc24.x86_64 /usr/src/akmods/nvidia-kmod.latest'
/tmp/akmodsbuild.wgd5l9jf/BUILD/nvidia-kmod-358.16/_kmod_build_4.6.3-300.fc24.x86_64/nvidia/os-mlock.c:119:11: error: too many arguments to function 'get_user_pages'
ret = get_user_pages(current, mm, (unsigned long)address,
^~~~~~~~~~~~~~
In file included from /tmp/akmodsbuild.wgd5l9jf/BUILD/nvidia-kmod-358.16/_kmod_build_4.6.3-300.fc24.x86_64/common/inc/nv-linux.h:65:0,
from /tmp/akmodsbuild.wgd5l9jf/BUILD/nvidia-kmod-358.16/_kmod_build_4.6.3-300.fc24.x86_64/nvidia/os-mlock.c:15:
include/linux/mm.h:1266:6: note: declared here
long get_user_pages(unsigned long start, unsigned long nr_pages,
^~~~~~~~~~~~~~
/tmp/akmodsbuild.wgd5l9jf/BUILD/nvidia-kmod-358.16/_kmod_build_4.6.3-300.fc24.x86_64/nvidia/os-mlock.c:132:13: error: implicit declaration of function 'page_cache_release' [-Werror=implicit-function-declaratio
<?xml version="1.0" encoding="utf-8"?>
<agent xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:proactive:agent:1.0:windows">
<config>
<proactiveHome>C:\Program Files (x86)\ProActiveAgent\schedworker</proactiveHome>
<javaHome>C:\Program Files (x86)\ProActiveAgent\schedworker\jre</javaHome>
<jvmParameters>
<param>-Djava.io.tmpdir=C:\Users\PROACT~1\AppData\Local\Temp\${rank}</param>
<param>-Dpa.logs.home=C:\Users\PROACT~1\AppData\Local\Temp\${rank}</param>
<param>-Dproactive.node.monitoring.db.dir=C:\Users\PROACT~1\AppData\Local\Temp\${rank}\</param>
<param>-Dpas.launcher.forkas.method=pwd</param>
@lpellegr
lpellegr / ow2-proactive-list-repository-tags
Last active August 18, 2016 19:57
Demonstrate how to list Github repository tags dynamically using Github API
<script src="https://code.jquery.com/jquery-3.1.0.min.js"></script>
<script type="text/javascript">
$(document).ready (function () {
jQuery.getJSON("https://api.github.com/repos/ow2-proactive/scheduling/tags").done(function (data) {
for(var i = 0; i < data.length; i++) {
var item = $("<li>");
var tag = data[i].name;
var a = $("<a>").attr("href", "http://doc.activeeon.com/" + tag).text("Version " + tag);
@lpellegr
lpellegr / ow2-proactive-jenkins-tests-failing-investigation
Created August 19, 2016 06:38
Summary of Jenkins tests that are failing for Scheduling project
* Build #804 (Aug 16, 2016 12:24:04 PM)
Windows
Test Result (3 failures / ±0)
functionaltests.RestSchedulerJobTaskTest.testJobResultValue
functionaltests.RestSchedulerJobTaskTest.urlMatrixParams_shouldReplace_jobVariabls
functionaltests.RestSchedulerJobTaskTest.testJobResult