Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

Tickets de bug

Nous allons utiliser la norme suivante pour les tickets de bug :

Titre :

Section - page/sous-section : probleme

Exemple :

Admin - Users : Certains champs à undefined

Contenu :

MongoDB benchmarks
Total impression count for each page of aufeminin
224.394172 s
Unique stickers count for each page of aufeminin
230.136377
Count of impressions by day
222.475197
browserify: {
lib: {
src: ['client/lib/*.js'],
dest: 'client/build/lib.js',
options: {
shim: {
jquery: {
path: 'client/lib/jquery-1.11.0.js',
exports: '$'
},
@Rayjax
Rayjax / 1-screenshot.js
Last active July 4, 2017 21:16
Take fast screenshots with Phantom.js from Node.js
/*
original : https://gist.github.com/BinaryMuse/2378993
Changes :
-Shares an instance of phantomJS for all requests instead of creating a new one for each
-Sends the created file as a response
-Uses good old JavaScript
-Coffee version below
*/
var phantom = require('phantom'),
function a(){function a(){function b(a,b){return Math.floor(Math.random()*(b-a+1)+a)}$("body").find("*").each(function(){ultraCounter=1.1*(ultraCounter+5);var a=b(-maxX-ultraCounter,maxX+ultraCounter),c=b(-maxY-ultraCounter,maxY+ultraCounter);a=$(this).position().left+a/50,c=$(this).position().top+c/50,$(this).css("left",a+"px").css("top",c+"px").css("margin-left","-"+a/2+"px").css("margin-top","-"+c/2+"px")}),setTimeout(a,20)}ultraCounter=0,jQuery.fn.css=function(a){return function(){if(arguments.length)return a.apply(this,arguments);for(var b=["font-family","font-size","font-weight","font-style","color","text-transform","text-decoration","letter-spacing","word-spacing","line-height","text-align","vertical-align","direction","background-color","background-image","background-repeat","background-position","background-attachment","opacity","width","height","top","right","bottom","left","margin-top","margin-right","margin-bottom","margin-left","padding-top","padding-right","padding-bottom","padding-left","border
$(document).on("click", function (e)
{
var div = $("tadiv");
if (!div.is(e.target) // ignorer ta div
&& div.has(e.target).length === 0) // ignorer ses contenus
{
alert("click en dehors effectue")
}
});
@Rayjax
Rayjax / build.gradle
Created March 15, 2016 10:36
build.gradle (module: app)
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
defaultConfig {
applicationId "com.example.andrea.blank_test"
minSdkVersion 15
@Rayjax
Rayjax / build.gradle
Created March 15, 2016 10:37
build.gradle (project)
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.0.0-beta6'
classpath 'com.google.gms:google-services:1.5.0'
var data = {
"type": "FeatureCollection",
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
"features": [
{ "type": "Feature", "properties": { "AREA": 496077216.0, "PERIMETER": 150985.0, "NAZEV": "Hlavn� m�sto Praha", "OB91": 1214174, "OB01": 1180131, "OB_311202": 1161938.0, "OKRES": "3100", "NUTS4": "CZ0110", "NUTS3": "CZ011", "NUTS2": "CZ01", "KRAJ1960": "3100", "NK": "HP", "KN": "01", "KNOK": "0100", "NAZKR": "Hlavn� m�sto Praha", "NAZEV_ENG": "Hlavni mesto Praha", "NAZKR_ENG": "Hlavni mesto Praha", "NEZAM": 24571 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 14.554964545285941, 50.012155211746261 ], [ 14.555661985922347, 50.010903938100348 ], [ 14.551420549326107, 50.00771654302379 ], [ 14.543149917147526, 50.007945135220254 ], [ 14.534995805038387, 50.011477243959611 ], [ 14.534720548681266, 50.011430429685966 ], [ 14.529083565520789, 50.010468820712802 ], [ 14.522078321631612,
@Rayjax
Rayjax / .gitlab-ci.yml
Last active February 24, 2019 15:08
Sample gitlab ci file for node-ci project
image: node:6.10.3
stages:
- ver
- init
- tests
- deploy
ver:
stage: ver