Skip to content

Instantly share code, notes, and snippets.

View guinslym's full-sized avatar

Guinslym guinslym

View GitHub Profile

tutoriel: Ajouter du contenu au Profile de votre université sur LibraryH3lp

  1. Se connecter au Tableau de Bord de LibraryH3lp

  2. Selectionner "Queue" dans la barre de menu (droite)

    • 2.1 Cliquer sur Scholars Portal

    • 2.1 2.2 Selectionner UOttawa

  3. Ajouter du contenu

  • 3.1 Cliquer sur "SAVE"

Sub count_total_nb_of_rows_and_delete_some_rows()
Dim last_row As Long
Dim total_row_to_remove As Integer
Dim randomNumber As Integer
Dim counter
last_row = Cells(Rows.Count, 1).End(xlUp).Row
MsgBox (last_row)
total_row_to_remove = CInt(last_row * 0.03)
<!doctype html>
<html lang="en">
<head>
<title>Chat Tab!</title>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<style type="text/css">
.libraryh3lp a {
background: #002f5e;
border: 0;
box-sizing: inherit;
color: #fff;
cursor: pointer;
font-size: 16px;
line-height: 1em;
padding: 18px;
<i class="fa fa-comment"></i><span>Chat With Us</span>
@guinslym
guinslym / response_headers_for_listserv.txt
Created June 26, 2019 15:11
Response Header for listserv. I want to try to connect to the listserv with the Python package Requests
Response Headers====
HTTP/1.1 200 OK
Date: Wed, 26 Jun 2019 15:05:47 GMT
Server: Apache/2.2.15 (Red Hat)
Set-Cookie: faq_list_serv+admin=john_doe_number; Path=/mailman/; Version=1
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html; charset=us-ascii
Request headers=====
8) :-) ;-) :) :o) >:D :D 8-) B-) 8-D B-| :| 8-/ ?-| :o >:-| :#( :0 :-< 8-( :( :'-( :*) :O :-0 :X :-s 8-s 8-[ 3-|{ :p @-) |-) :-)} ||-) O-) #-( >:-) >:-D %) :-[] X-) :carrot: :apple: (-: :[ 8-| :-] :-! O-] |:-) P-) :-)> 8-] [:|] :-p :cherry: :mushroom: :drink: :cocktail: :coffee: O:-) :graduate: :man: :bat: :cat: :cobra: :dinosaur: :dog: :dragon: :home: :hammer: :god: :world: :skull: :death: :helicopter: :bheart: :glasses: :devil: :photo: :jabber: :linux: :fish: :letter: :music: :phone: :speaker: :no: :yes: :syringe: :television: :water:
Traceback (most recent call last):
File "service.py", line 75, in <module>
main()
File "service.py", line 72, in main
check_queue(client, queue)
File "service.py", line 64, in check_queue
check_min_operators(client, queue)
File "service.py", line 45, in check_min_operators
operators = count_operators(client, queue)
File "service.py", line 34, in count_operators
from datetime import date
import csv
import lh3.api
import requests
import sys
import tempfile
import zipfile
client = lh3.api.Client()
@guinslym
guinslym / index.html
Last active April 30, 2019 19:09
Template for Proactive Chat in LH3
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">