Skip to content

Instantly share code, notes, and snippets.

View alxlion's full-sized avatar
🏗️
Building

Alexandre Lion alxlion

🏗️
Building
View GitHub Profile
@alxlion
alxlion / style.css
Created April 16, 2016 09:28
Fix dark input Firefox
input:not(.urlbar-input):not(.textbox-input):not(.form-control):not([type='checkbox'])
:not(#search_form_input):not(#search_form_input_clear):not(#search_button):not(#search_form_input_homepage) {
-moz-appearance: none !important;
background-color: white;
color: black;
}
#downloads-indicator-counter {
color: white;
}
@alxlion
alxlion / CMakeLists.txt
Created February 19, 2016 22:43
Include ncurses lib in Cmake project
find_package(Curses REQUIRED)
include_directories(${CURSES_INCLUDE_DIR})
target_link_libraries(${PROJECT_NAME} ${CURSES_LIBRARIES})
@alxlion
alxlion / main.c
Last active February 17, 2016 10:20
Correction TP 1GCC - 2015-2016
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#define MAX_LENGTH 1024
void convertToBinary(char* word); // Ces prototypes de fonctions (ou signatures) pouvaient
void convertToHex(char* word); // très bien se trouver dans un fichier .h et leur implémentation
void convertToBase64(char* word); // dans un fichier .c correspondant.
/************************************************* receiver ************************************************/
/*
Example for receiving
http://code.google.com/p/rc-switch/
If you want to visualize a telegram copy the raw data and
paste it into http://test.sui.li/oszi/
*/
@alxlion
alxlion / gist:6088316
Last active April 8, 2016 20:07
Look and feel system UI
try {
UIManager.setLookAndFeel(
UIManager.getSystemLookAndFeelClassName());
}
catch (UnsupportedLookAndFeelException | ClassNotFoundException |
IllegalAccessException | InstantiationException e) { e.printStackTrace();}