Skip to content

Instantly share code, notes, and snippets.

View soscler's full-sized avatar
🤖
🙂

Chriss Santi soscler

🤖
🙂
View GitHub Profile
version: "3.5"
services:
# server:
# image: rsysserver:latest
# container_name: rsys-server
# command: npm start
# #restart: always

Amen Amegnonan et Chriss Santi

TP7: DBPedia

3 Requêtes sur les oeuvres DBPedia

  • a: Sous classes
SELECT distinct ?subClasses
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 1 column, instead of 4. in line 1.
Date;Hour;Depth/m;Temp/C;density #/L;Colony Diameter / Cm;Species;
04/06/2011;06:00;0,5;14,1;72;2,12;cuni;
04/06/2011;07:00;0,5;14,1;54;1,98;cuni;
04/06/2011;08:00;0,5;14,1;35;2,34;cuni;
04/06/2011;09:00;5;13,8;45;1,6;cuni;
04/06/2011;10:00;5;13,8;60;2,13;cuni;
04/06/2011;11:00;5;13,8;20;2,23;cuni;
04/06/2011;12:00;10;12,3;75;1,78;cuni;
04/06/2011;13:00;10;12,3;24;1,76;cuni;
04/06/2011;14:00;10;12,3;56;2,16;cuni;
@soscler
soscler / old.linux.bash
Created October 8, 2019 08:44
old bashrc file
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@soscler
soscler / ild-links.txt
Created September 27, 2019 12:19
Useful resources for ild

GRUB bootloader gets overrided if you install Windows after Ubuntu. I make this video tutorial on how to restore and customize the GRUB loader.

Common Problem: You install Windows after you install Ubuntu. That erases the GRUB loader, and instead of being able to switch between Ubuntu and Windows, Windows will boot automatically.

Steps:

  1. Create a bootable USB Flash Drive of Ubuntu.
# python3 solution.py < input_file.txt > output_file.txt # To redirect the input and output to a file
# input() reads a string with a line of input, stripping the ' ' (newline) at the end.
# This is all you need for most Code Jam problems.
t = int(input()) # read a line with a single integer
for i in range(1, t + 1):
n, r, c, sr, sc = [int(s) for s in input().split(" ")] # read a list of integers, 2 in this case
tr = sr
tc = sc
#include <iostream> // includes cin to read from stdin and cout to write to stdout
using namespace std; // since cin and cout are both in namespace std, this saves some text
int main() {
int t, n, m, r, c, sr, sc, tr, tc;
std::string instruction;
cin >> t; // read t. cin knows that t is an int, so it reads it as such.
for (int i = 1; i <= t; ++i) {

The puzzle of Lewis Carroll:

Dans une petite rue se trouvent cinq maisons de différentes couleurs. Cinq hommes de différentes nationalités vivent dans ces maisons, il y a cinq maisons. Chaque homme a une profession différente, chaque homme aime une boisson différente, et chacun possède un animal de compagnie différent. Nous avons les informations suivantes.

  • L'Anglais vit dans la maison rouge.
  • L'Espagnol possède un chien.
  • Le Japonais est un peintre.
@soscler
soscler / compilation-bigdebug.m
Created May 19, 2019 13:37
error while compiling spark with maven
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Spark Project Parent POM 1.2.1:
[INFO]
[INFO] Spark Project Parent POM ........................... SUCCESS [ 3.022 s]
[INFO] Spark Project Networking ........................... SUCCESS [ 3.851 s]
[INFO] Spark Project Shuffle Streaming Service ............ SUCCESS [ 2.651 s]
[INFO] Spark Project Core ................................. SUCCESS [01:15 min]
[INFO] Spark Project Bagel ................................ SUCCESS [ 3.563 s]
[INFO] Spark Project GraphX ............................... SUCCESS [ 8.222 s]
[INFO] Spark Project Streaming ............................ SUCCESS [ 12.651 s]