Skip to content

Instantly share code, notes, and snippets.

View guilbep's full-sized avatar
🕸️
Locked in

Guilbert Pierre guilbep

🕸️
Locked in
View GitHub Profile
@guilbep
guilbep / setValidity.js
Created October 31, 2014 11:48
setValidity
module.directive('setValidity', ['$parse',
function($parse) {
// no need for form. better
return {
require: "ngModel",
scope: {
'setValidity': '=setValidity',
'ngDisabled': '=ngDisabled'
},
controller: function($scope, $element, $attrs, $transclude) {
@guilbep
guilbep / truth.js
Last active August 29, 2015 14:16
thetruth
link: function(scope, elm, attrs) {
elm[0].innerHTML = "";
var newTable = "<table border='1' width='100%'>";
var j = 1;
var i = 1;
for (; j <= 100; j++) {
newTable += "<tr>";
i = 1;
for (; i <= 10; i++) {
newTable += "<td align='center'>" + String(j + 64) + "</td>";
@guilbep
guilbep / jshint.rc
Last active August 29, 2015 14:19
My jshint rc
{
// --------------------------------------------------------------------
// JSHint Configuration, Strict Edition
// --------------------------------------------------------------------
//
// This is a options template for [JSHint][1], using [JSHint example][2]
// and [Ory Band's example][3] as basis and setting config values to
// be most strict:
//
// * set all enforcing options to true
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style media="screen" src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
</style>
<style media="screen">
.bs-callout {
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by htop configure 2.0.0, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --no-create --no-recursion
## --------- ##
## Platform. ##
@guilbep
guilbep / test.js
Last active October 5, 2017 10:08
document.getElementById('owid:0-15a66463d56').innerHTML = "<img src='https://media.giphy.com/media/l378hFSP5KFVUkxag/giphy.gif' style='margin: 0 auto; width:100%; height:600px;'>";
@guilbep
guilbep / sh
Created November 7, 2023 13:04
Create issue with a batch script from a json and jq
#!/bin/sh
# Example of input
# {
# "id": "Module: Cooking",
# "sid": "f",
# "comment": "Ethanol: The tool does not indicate whether ethanol originates from renewable sources (which is likely the case as it commonly stems from plantations).",
# "priority": "Implemented",
# "actions": "IT4R implemented the tree icon indicating the ethanol comes from sustainable sources.",
# "estimated_hours": "0",
# "unhcr_comments": null,
@guilbep
guilbep / Makefile
Last active March 6, 2025 15:07
Makefile for PotreeConverter 2.1.1
# Makefile
# Download .zip linux x64 from https://github.com/potree/PotreeConverter/releases/tag/2.1.1
# https://github.com/potree/PotreeConverter/releases/download/2.1.1/PotreeConverter_2.1.1_x64_linux.zip
# Variables
IMAGE_NAME = ghcr.io/epfl-enac/potree_converter:2.1.1
CONTAINER_NAME = potree_converter_container
build:

README for Research Dataset

Dataset Information

  • Title: [Dataset Title]
  • Created: March 31, 2025
  • Version: 1.0
  • Authors: [Author Names and Affiliations]
  • Contact: [Contact Email]

Description

@guilbep
guilbep / mirror.yaml
Last active April 15, 2025 09:29
automatic push to gitlab
name: Mirror to GitLab
on:
push:
branches:
- '**' # Trigger on push to any branch
jobs:
mirror:
runs-on: ubuntu-latest