Reworks styles, adds syntax highlighting and fixes some articles

This commit is contained in:
Samuel FORESTIER
2017-10-31 13:31:16 -04:00
committed by Samuel FORESTIER
parent 2ec0adc447
commit 996d407d50
21 changed files with 209 additions and 91 deletions

@ -8,9 +8,13 @@
<link rel="icon" href="/img/favicon.ico" />
<link rel="stylesheet" type="text/css" href="/css/reset.min.css" />
<link rel="stylesheet" type="text/css" href="/css/style{% if jekyll.environment == 'production' %}.min{% endif %}.css" />
<link rel="stylesheet" type="text/css" href="/css/styles{% if jekyll.environment == 'production' %}.min{% endif %}.css" />
<link rel="stylesheet" type="text/css" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css" />
{% if page.url contains 'blog' %}
<link rel="stylesheet" type="text/css" href="/css/syntaxes{% if jekyll.environment == 'production' %}.min{% endif %}.css" />
{% endif %}
<script src="/js/jquery-3.2.1.min.js"></script>
<script src="/js/modernizr-2.8.3.min.js"></script>

@ -59,11 +59,11 @@ Historique des modifications de ce script :
+ Ajouts d'offsets verticaux pour les icônes des données
```
* * *
---
Dernière version (tournait à l'époque sur un Dell Latitude E4500 sous [Debian Stretch](https://wiki.debian.org/fr/DebianStretch), avec Conky 1.10.0): [ICI](https://gist.github.com/HorlogeSkynet/0ad4585ab460eb4e037d).
Dernière version (tournait à l'époque sur un Dell Latitude E4500 sous [Debian Stretch](https://wiki.debian.org/fr/DebianStretch), avec Conky 1.10.0): [ici](https://gist.github.com/HorlogeSkynet/0ad4585ab460eb4e037d).
Vous aurez aussi maintenant besoin du contenu de [cette archive](https://www.dropbox.com/s/u5ef3n2wtvwsw74/ConkyFonts.zip?dl=0), à extraire et placer dans :
Vous aurez aussi maintenant besoin du contenu de [cette archive](https://www.dropbox.com/s/i89zffinr0dbhv6/conkyfonts.zip?dl=0), à extraire et placer dans :
> /home/$USER/.fonts/
@ -73,13 +73,13 @@ Vous aurez également besoin de rendre les tâches _Aptitude_ effectuées par vo
... et ajoutez-y ces trois lignes:
> */30 * * * * apt-get update > /dev/null
> */45 * * * * apt-get -s -o Debug::NoLocking=true upgrade | grep -c ^'Inst ' > /tmp/nbUpgrade.txt
> */45 * * * * apt-get -s -o Debug::NoLocking=true dist-upgrade | grep -c ^'Inst ' > /tmp/nbDistUpgrade.txt
> \*/30 \* \* \* \* apt-get update > /dev/null
> \*/45 \* \* \* \* apt-get -s -o Debug::NoLocking=true upgrade | grep -c ^'Inst ' > /tmp/nbUpgrade.txt
> \*/45 \* \* \* \* apt-get -s -o Debug::NoLocking=true dist-upgrade | grep -c ^'Inst ' > /tmp/nbDistUpgrade.txt
Désormais les résultats seront écrits dans des fichiers _.txt_ que vote Conky ira lire directement.
* * *
---
**/!\ CE SCRIPT N'EST NI À JOUR, NI MAINTENU, [NOUVEL ARTICLE = NOUVEAU SCRIPT](/blog/tutorials/a-laide-du-lua-mon-script-conky-revu-en-beaute) /!\\**

@ -31,7 +31,7 @@ Dans le même répertoire que ci-dessus, vous trouverez également le fichier :
... qui contient tout simplement la valeur maximale que peut accepter votre écran.
* * *
---
Pour rendre l'ajustement plus simple, et plus "ludique", j'ai décidé de mettre au point deux scripts que l'on peut lancer directement depuis le Menu d'OpenBox.
@ -63,7 +63,7 @@ Avec les privilèges nécessaires, déplacez-les dans le dossier:
> /usr/bin/
* * *
---
À vous maintenant de rajoutez les fonctions :

@ -27,7 +27,7 @@ Sélectionnez maintenant les deux paquets existants (**arduino** &amp; **arduino
> Paquet > Bloquer la version
* * *
---
_EDIT_ :
@ -37,13 +37,13 @@ Il suffit d'ouvrir un terminal en mode Root et de taper:
`# echo arduino hold | dpkg --set-selections`
* * *
---
Vous pouvez _checker_ la liste des paquets bloqués à l'aide de :
`$ dpkg --get-selections | grep hold`
* * *
---
Vous pouvez maintenant lancer un :

@ -16,7 +16,7 @@ If you want to change a password of an user session, you may have to use the con
> Change user password
* * *
---
However, you can run :

@ -20,7 +20,7 @@ You have to use the basic functions of Linux, the same way to power off a PC und
Wait until only one red LED still light on, and unplug the Raspberry's electrical supply.
* * *
---
On ArchLinux with _Systemd_, you can run:

@ -8,15 +8,17 @@ category: Tutorials
[![A missing blog post image](/img/blog/crer-un-raccourci-lanceur-pour-wine.png)](/img/blog/crer-un-raccourci-lanceur-pour-wine.png)
> wine **"** /home/.../votreProgramme.exe **"**
> wine **"**/home/.../votreProgramme.exe**"**
Comme vous pouvez le constater, l'aide de [Wine](http://www.winehq.org/) n'est pas des plus explicites :fearful:
Si vous voulez créer un raccourci vers un logiciel, émulé sur Wine, il vous faudra procéder de la façon suivante :
1. Créez un lanceur
2. Attribuez-lui un nom, une image et une description
3. Pointez comme lanceur :
3. Pointez comme lanceur :
> "cheminDeVotreFichier/votrePrgm.exe"
C'est tout ! Pensez juste aux guillemets !

@ -35,4 +35,4 @@ PS1='\
'
```
Quittez en sauvegardant, relancez une console, et... c'est coloré :simple_smile:
Quittez en sauvegardant, relancez une console, et... c'est coloré :smile:

@ -11,4 +11,4 @@ Comme notre non-sélection après les épreuves de qualification nous est "rest
Sont codées [ici](https://gist.github.com/HorlogeSkynet/ec6e2fa10d7a92960524f8b82bb4a265) les 3 courses du concours de 2013, ne posez pas de questions sur pourquoi nous avons décidé de faire cela.
Voici également le support de notre présentation orale de fin de projet: [Prezi](https://prezi.com/ofc7lrxltjik/iter_robots_2014/).
Voici également le support de notre présentation orale de fin de projet : [Prezi](https://prezi.com/ofc7lrxltjik/iter_robots_2014/).

@ -23,8 +23,11 @@ Incompréhensible hein ?
Explications des paramètres :
1. `val` : Variable décimale à convertir
2. `width` : Taille de la chaîne cible (le caractère `.` doit être compté)
3. `prec` : Nombre de chiffres après la virgule
4. `s` : Tableau contenant la chaîne de caratères
_PS_ : Elle renvoie un pointeur sur le tableau contenant la chaîne.

@ -20,7 +20,7 @@ Avant de commencer, je vous propose de créer un alias de votre serveur à l'aid
`IP_SERVEUR ALIAS`
* * *
---
Passons maintenant à la génération et à l'envoi de la clé, côté client :
@ -40,7 +40,7 @@ Essayons de nous connecter sans aucune_information supplémentaire :
`$ ssh USER@ALIAS`
* * *
---
Vous pouvez également empêcher la lecture de votre clé privée en autorisant son accès uniquement depuis la session _root_ par un :

@ -8,7 +8,7 @@ category: Programming
[![A missing blog post image](/img/blog/impossibilite-de-gets-apres-scanf-c.png)](/img/blog/impossibilite-de-gets-apres-scanf-c.png)
Tout le monde sait à quel point `gets()`` n'est vraiment pas une fonction "fiable", mais personnellement, je pensais qu'il y avait des limites...
Tout le monde sait à quel point `gets()` n'est vraiment pas une fonction "fiable", mais personnellement, je pensais qu'il y avait des limites...
Si vous faites un basique `scanf()`, suivi d'un `gets()` (et même dans une autre fonction), votre `gets()` sera juste ignoré.

@ -22,7 +22,7 @@ From now, the file :
... may no longer exists.
* * *
---
Now, we'll remove the permanent logs system writing, with [Ramlog](http://www.tremende.com/ramlog/).

@ -30,7 +30,7 @@ Ci-dessous va suivre une succession d'arguments démontrant à mon gout les vice
→ Pour finir, et cela est normal, le système brasse une quantité de personnes monstrueuse, et donc également des gens qui ne partagent parfois rien. Donc le trajet peut s'avérer être très compliqué, et peut amener des situations délicates à manier, selon les habitudes ou parfois uniquement les façons de vivre de chacun.
* * *
---
Pour conclure, on ne peut pas nier le fait que ce système soit une avancée majeure en tant que moyen sécurisant de se déplacer à notre siècle et avec nos 4 roues en constante mouvance, mais en tout cas, faites attention, on n'est jamais à l'abri d'une situation délicate, en tant que chauffeur... ou covoituré !
Et tant que la _SNCF_ n'aura pas dénier revoir à la baisse ses tarifs... la totalité des autres modes de transports se verront lutter une guerre acharnée sur des marchés... de plus en plus libéralisés.

@ -29,7 +29,7 @@ I let you make the changes, and press 'Enter'.
Now you can reboot as many times as you want, your Pi is supposed to connect itself at startup, to the Wifi.
* * *
---
Actually it's not entirely finished, 'cause the official documentation advises us to change the permissions on profiles containing secrets :
`# chmod 0600 /etc/netctl/PROFILENAME`

@ -63,7 +63,7 @@ Now let's make `iptables` starting on boot automatically :
`# systemctl enable iptables`
* * *
---
At this point, your router is supposed to _route_, but your devices won't have an IP automatically, let's install and set up a DHCP server on your router :
@ -92,6 +92,6 @@ Identically as above, let's make DHCPD running on boot :
`# systemctl enable dhcpd4`
* * *
---
That's all ! Your devices should have access to Internet through your little router **after a reboot**. You are now able to build your own firewall rules, and do some others things easily :wink:

@ -13,8 +13,11 @@ Bon, _here we are_, 48 heures plus tard, une petite procédure pour programmer f
Pourquoi tant de temps ? Parce que :
1. plus personne ne fait ça
2. la moitié des pages web traitant de ce sujet ne répondent plus
3. parce que quand même, si GDB était encore compatible avec NASM, ça aurait été trop simple
4. Il a d'abord fallu attendre que Visual C++ se lance, plante et s'arrête, accompagné de 2 redémarrages de Windows intrusifs *troll*
Commençons par installer les dépendances (procédure pour Debian ici) :
@ -33,61 +36,63 @@ Une fois copié dans un fichier :
`$ gdb ./helloWorld`
* * *
---
Un autre moyen pour vous serez de passer par un IDE développé de façon indépendante, [SASM](https://dman95.github.io/SASM/english.html).
Pour l'utiliser, rendez-vous sur [cette page](http://download.opensuse.org/repositories/home:/Dman95/) et téléchargez-y l'archive qui correspond à votre système.
Une fois installé, récupérez mon fichier de configuration ci-dessous, et copiez-le dans votre `~/.config/SASM\ Project/SASM.conf` :
> [General]
> language=1
> starttext=";\n;\n;\n\n\nsection .data\n\nsection .bss\n\nsection .text\n\n global \_start\n\n_start:\n\n mov eax, 1\n mov ebx, 0\n int
> 0x80\n" backgroundcolor=@Variant(\0\0\0\x43\x1\xff\xff++++++\0\0)
> keywordscolorbg=@Variant(\0\0\0\x43\x1\xff\xff++++++\0\0)
> registerscolorbg=@Variant(\0\0\0\x43\x1\xff\xff++++++\0\0)
> numberscolorbg=@Variant(\0\0\0\x43\x1\xff\xff++++++\0\0)
> memorycolorbg=@Variant(\0\0\0\x43\x1\xff\xff++++++\0\0)
> labelscolorbg=@Variant(\0\0\0\x43\x1\xff\xff++++++\0\0)
> commentscolorbg=@Variant(\0\0\0\x43\x1\xff\xff++++++\0\0)
> systemcolorbg=@Variant(\0\0\0\x43\x1\xff\xff++++++\0\0)
> iomacrocolorbg=@Variant(\0\0\0\x43\x1\xff\xff++++++\0\0)
> quotationcolorbg=@Variant(\0\0\0\x43\x1\xff\xff++++++\0\0)
> startwindow=1
> allregisters=true
> insertdebugstring=true
> fontfamily=Courier New
> fontsize=12
> assemblyoptions=-g -f elf64 $SOURCE$ -l $LSTOUTPUT$ -o $PROGRAM.OBJ$
> linkingoptions=$PROGRAM.OBJ$ -g -o $PROGRAM$
> objectfilename=program.o
> disablelinking=false
> assemblerpath=nasm
> linkerpath=ld
> tabgeometry=@ByteArray(\x1\xd9\xd0\xcb\0\x1\0\0\0\0\0\0\0\0\0\0\0\0\x5Q\0\0\x1\xe5\0\0\0\0\0\0\0\0\0\0\x5Q\0\0\x1\xe5\0\0\0\0\0\0)
> tabwindowstate=@ByteArray(\0\0\0\xff\0\0\0\0\xfd\0\0\0\x1\0\0\0\x1\0\0\x1\x12\0\0\x1\xe6\xfc\x2\0\0\0\x2\xfb\0\0\0\x12\0i\0n\0p\0u\0t\0\x44\0o\0\x63\0k\x1\0\0\0\0\0\0\x1\xe6\0\0\0|\0\xff\xff\xff\xfb\0\0\0\x14\0o\0u\0t\0p\0u\0t\0\x44\0o\0\x63\0k\x3\0\0\x4\x42\0\0\x1l\0\0\x1\x12\0\0\0\xec\0\0\x4:\0\0\x1\xe6\0\0\0\x4\0\0\0\x4\0\0\0\b\0\0\0\b\xfc\0\0\0\0) mode=x64
> currentlinemode=false
> fontcolor=@Variant(\0\0\0\x43\x1\xff\xff\xff\xff\xff\xff\xff\xff\0\0)
> linenumberfontcolor=@Variant(\0\0\0\x43\x1\xff\xff\xff\xff\xff\xff\xff\xff\0\0)
> windowstate=@ByteArray(\0\0\0\xff\0\0\0\0\xfd\0\0\0\0\0\0\x5V\0\0\x2\x90\0\0\0\x4\0\0\0\x4\0\0\0\b\0\0\0\b\xfc\0\0\0\x1\0\0\0\x2\0\0\0\x4\0\0\0\b\0\x46\0i\0l\0\x65\x1\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0\0\0\0\b\0\x45\0\x64\0i\0t\x1\0\0\0y\xff\xff\xff\xff\0\0\0\0\0\0\0\0\0\0\0\n\0\x42\0u\0i\0l\0\x64\x1\0\0\x1:\xff\xff\xff\xff\0\0\0\0\0\0\0\0\0\0\0\n\0\x44\0\x65\0\x62\0u\0g\x1\0\0\x1\xb3\xff\xff\xff\xff\0\0\0\0\0\0\0\0)
> tabscount=0
> saveopendirectory=/home/horlogeskynet/GDrive/Scolaire/3A - INSA/Prog_ASM/TD3
> logsplitterstate=@ByteArray(\0\0\0\xff\0\0\0\0\0\0\0\x2\0\0\x1\xe6\0\0\0w\x1\0\0\0\x6\x1\0\0\0\x2)
> labelscolor=@Variant(\0\0\0\x43\x1\xff\xff\xff\xff\0\0\0\0\0\0)
> commentscolor=@Variant(\0\0\0\x43\x1\xff\xff\0\0\xff\xff\0\0\0\0)
> systemcolor=@Variant(\0\0\0\x43\x1\xff\xff\0\0\xff\xff\xff\xff\0\0)
> memorycolor=@Variant(\0\0\0\x43\x1\xff\xff\0\0\x80\x80\xff\xff\0\0)
> currentlinecolor=@Variant(\0\0\0\x43\x1\xff\xff\xaa\xaa\xaa\xaa\x7f\x7f\0\0)
> iomacrocolor=@Variant(\0\0\0\x43\x1\xff\xff\0\0UU\xff\xff\0\0)
> registerscolor=@Variant(\0\0\0\x43\x1\xff\xff\xbf\xbf\0\0\xff\xff\0\0)
> keywordscolor=@Variant(\0\0\0\x43\x1\xff\xff\0\0UU\xff\xff\0\0)
> assembler=NASM
> debugregisters=false
> debugmemory=false
> debugstate=@ByteArray(\0\0\0\xff\0\0\0\0\xfd\0\0\0\0\0\0\x5V\0\0\x2\x90\0\0\0\x4\0\0\0\x4\0\0\0\b\0\0\0\b\xfc\0\0\0\x1\0\0\0\x2\0\0\0\x4\0\0\0\b\0\x46\0i\0l\0\x65\x1\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0\0\0\0\b\0\x45\0\x64\0i\0t\x1\0\0\0y\xff\xff\xff\xff\0\0\0\0\0\0\0\0\0\0\0\n\0\x42\0u\0i\0l\0\x64\x1\0\0\x1:\xff\xff\xff\xff\0\0\0\0\0\0\0\0\0\0\0\n\0\x44\0\x65\0\x62\0u\0g\x1\0\0\x1\xb3\xff\xff\xff\xff\0\0\0\0\0\0\0\0)
> [MainWindow]
> size=@Size(1366 716)
> pos=@Point(0 0)
> maximized=2
```ini
[General]
language=1
starttext=";\n;\n;\n\n\nsection .data\n\nsection .bss\n\nsection .text\n\n global \_start\n\n_start:\n\n mov eax, 1\n mov ebx, 0\n int 0x80\n"
backgroundcolor=@Variant(\0\0\0\x43\x1\xff\xff++++++\0\0)
keywordscolorbg=@Variant(\0\0\0\x43\x1\xff\xff++++++\0\0)
registerscolorbg=@Variant(\0\0\0\x43\x1\xff\xff++++++\0\0)
numberscolorbg=@Variant(\0\0\0\x43\x1\xff\xff++++++\0\0)
memorycolorbg=@Variant(\0\0\0\x43\x1\xff\xff++++++\0\0)
labelscolorbg=@Variant(\0\0\0\x43\x1\xff\xff++++++\0\0)
commentscolorbg=@Variant(\0\0\0\x43\x1\xff\xff++++++\0\0)
systemcolorbg=@Variant(\0\0\0\x43\x1\xff\xff++++++\0\0)
iomacrocolorbg=@Variant(\0\0\0\x43\x1\xff\xff++++++\0\0)
quotationcolorbg=@Variant(\0\0\0\x43\x1\xff\xff++++++\0\0)
startwindow=1
allregisters=true
insertdebugstring=true
fontfamily=Courier New
fontsize=12
assemblyoptions=-g -f elf64 $SOURCE$ -l $LSTOUTPUT$ -o $PROGRAM.OBJ$
linkingoptions=$PROGRAM.OBJ$ -g -o $PROGRAM$
objectfilename=program.o
disablelinking=false
assemblerpath=nasm
linkerpath=ld
tabgeometry=@ByteArray(\x1\xd9\xd0\xcb\0\x1\0\0\0\0\0\0\0\0\0\0\0\0\x5Q\0\0\x1\xe5\0\0\0\0\0\0\0\0\0\0\x5Q\0\0\x1\xe5\0\0\0\0\0\0)
tabwindowstate=@ByteArray(\0\0\0\xff\0\0\0\0\xfd\0\0\0\x1\0\0\0\x1\0\0\x1\x12\0\0\x1\xe6\xfc\x2\0\0\0\x2\xfb\0\0\0\x12\0i\0n\0p\0u\0t\0\x44\0o\0\x63\0k\x1\0\0\0\0\0\0\x1\xe6\0\0\0|\0\xff\xff\xff\xfb\0\0\0\x14\0o\0u\0t\0p\0u\0t\0\x44\0o\0\x63\0k\x3\0\0\x4\x42\0\0\x1l\0\0\x1\x12\0\0\0\xec\0\0\x4:\0\0\x1\xe6\0\0\0\x4\0\0\0\x4\0\0\0\b\0\0\0\b\xfc\0\0\0\0) mode=x64
currentlinemode=false
fontcolor=@Variant(\0\0\0\x43\x1\xff\xff\xff\xff\xff\xff\xff\xff\0\0)
linenumberfontcolor=@Variant(\0\0\0\x43\x1\xff\xff\xff\xff\xff\xff\xff\xff\0\0)
windowstate=@ByteArray(\0\0\0\xff\0\0\0\0\xfd\0\0\0\0\0\0\x5V\0\0\x2\x90\0\0\0\x4\0\0\0\x4\0\0\0\b\0\0\0\b\xfc\0\0\0\x1\0\0\0\x2\0\0\0\x4\0\0\0\b\0\x46\0i\0l\0\x65\x1\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0\0\0\0\b\0\x45\0\x64\0i\0t\x1\0\0\0y\xff\xff\xff\xff\0\0\0\0\0\0\0\0\0\0\0\n\0\x42\0u\0i\0l\0\x64\x1\0\0\x1:\xff\xff\xff\xff\0\0\0\0\0\0\0\0\0\0\0\n\0\x44\0\x65\0\x62\0u\0g\x1\0\0\x1\xb3\xff\xff\xff\xff\0\0\0\0\0\0\0\0)
tabscount=0
saveopendirectory=/home/horlogeskynet/GDrive/Scolaire/3A - INSA/Prog_ASM/TD3
logsplitterstate=@ByteArray(\0\0\0\xff\0\0\0\0\0\0\0\x2\0\0\x1\xe6\0\0\0w\x1\0\0\0\x6\x1\0\0\0\x2)
labelscolor=@Variant(\0\0\0\x43\x1\xff\xff\xff\xff\0\0\0\0\0\0)
commentscolor=@Variant(\0\0\0\x43\x1\xff\xff\0\0\xff\xff\0\0\0\0)
systemcolor=@Variant(\0\0\0\x43\x1\xff\xff\0\0\xff\xff\xff\xff\0\0)
memorycolor=@Variant(\0\0\0\x43\x1\xff\xff\0\0\x80\x80\xff\xff\0\0)
currentlinecolor=@Variant(\0\0\0\x43\x1\xff\xff\xaa\xaa\xaa\xaa\x7f\x7f\0\0)
iomacrocolor=@Variant(\0\0\0\x43\x1\xff\xff\0\0UU\xff\xff\0\0)
registerscolor=@Variant(\0\0\0\x43\x1\xff\xff\xbf\xbf\0\0\xff\xff\0\0)
keywordscolor=@Variant(\0\0\0\x43\x1\xff\xff\0\0UU\xff\xff\0\0)
assembler=NASM
debugregisters=false
debugmemory=false
debugstate=@ByteArray(\0\0\0\xff\0\0\0\0\xfd\0\0\0\0\0\0\x5V\0\0\x2\x90\0\0\0\x4\0\0\0\x4\0\0\0\b\0\0\0\b\xfc\0\0\0\x1\0\0\0\x2\0\0\0\x4\0\0\0\b\0\x46\0i\0l\0\x65\x1\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0\0\0\0\b\0\x45\0\x64\0i\0t\x1\0\0\0y\xff\xff\xff\xff\0\0\0\0\0\0\0\0\0\0\0\n\0\x42\0u\0i\0l\0\x64\x1\0\0\x1:\xff\xff\xff\xff\0\0\0\0\0\0\0\0\0\0\0\n\0\x44\0\x65\0\x62\0u\0g\x1\0\0\x1\xb3\xff\xff\xff\xff\0\0\0\0\0\0\0\0)
[MainWindow]
size=@Size(1366 716)
pos=@Point(0 0)
maximized=2
```
Procédure de test: créez un nouveau projet et collez-y [ce même programme](https://gist.github.com/HorlogeSkynet/eff0a7e307809c1b661a87d88bd33f21) dans l'éditeur de SASM, puis lancez une exécution et un debuggage afin de vérifier que les opérations fonctionnent !
Procédure de test : créez un nouveau projet et collez-y [ce même programme](https://gist.github.com/HorlogeSkynet/eff0a7e307809c1b661a87d88bd33f21) dans l'éditeur de SASM, puis lancez une exécution et un debuggage afin de vérifier que les opérations fonctionnent !

@ -35,10 +35,10 @@ footer {
text-align: center;
color: white;
opacity: 0.75;
font-size: 90%;
white-space: nowrap;
overflow-x: auto;
overflow-y: hidden;
background-color: black;
-webkit-transform: translateZ(0);
transform: translateZ(0);
-webkit-transition: -webkit-transform .5s;
@ -59,13 +59,14 @@ a:hover {
p {
max-width: 1024px;
line-height: 1.6;
margin: 2em auto;
opacity: 0.8;
margin: 1em auto;
color: #232423;
text-align: left;
}
h1, h2, h3, h4, h5, h6 {
display: block;
opacity: 0.8;
margin-left: 0;
margin-right: 0;
font-weight: bold;
@ -79,6 +80,7 @@ h2 {
font-size: 125%;
}
h3 {
margin: 40px 0 20px 0;
font-size: 1.17em;
}
h4 {
@ -103,18 +105,47 @@ blockquote {
font-style: italic;
font-size: 110%;
margin: 32px;
font-family: Consolas, "Times New Roman", Verdana;
font-family: "monospace";
border-left: 6px solid #25283D;
padding-left: 15px;
}
code.highlighter-rouge {
font-size: 85%;
padding: 0.2em 0.1em;
padding-left: 15px;
padding: 0.2em;
background-color: rgba(0, 0, 0, 0.15);
border-radius: 3px;
}
div.highlighter-rouge {
max-width: 1024px;
display: block;
margin-left: auto;
margin-right: auto;
}
.highlight pre {
font-size: 110%;
padding: 5px 5px 5px 15px;
border-color: grey;
border-style: solid;
border-width: 1px 1px 1px 10px;
white-space: pre-wrap;
overflow-x: auto;
border-radius: 10px;
-moz-border-radius: 10px;
-khtml-border-radius: 10px;
-webkit-border-radius: 10px;
}
.highlight pre code[class]:before {
content: 'language: ' attr(data-lang);
display: block;
text-align: right;
font-size: smaller;
padding-bot: 5px;
}
hr {
border: 0;
width: 100%;
@ -155,15 +186,30 @@ span.dates {
margin-top: 20px;
text-align: left;
}
.post-content ul {
list-style: disc;
list-style: none;
margin-left: 2em;
list-style-position: inside;
}
.post-content ul > li > p::before {
content: "•";
padding-right: 5px;
}
.post-content ol {
list-style: decimal;
list-style: none;
margin-left: 2em;
}
.post-content > p > a > img {
.post-content ol > li {
counter-increment: step-counter;
}
.post-content ol > li > p::before {
content: counter(step-counter) ".";
padding-right: 5px;
}
.post-content p > a > img {
max-width: 100%;
margin: 20px auto 20px auto;
border: 3px solid #25283D;
@ -174,7 +220,7 @@ span.dates {
margin-right: auto;
}
.post-content > p > a > img:hover {
opacity: 0.5;
opacity: 0.75;
}
.post-video {
@ -198,10 +244,6 @@ span.dates {
overflow-y: hidden;
}
.post-gallery {
margin: 50px 0px 50px 0px;
}
#disqus_thread {
margin-top: 40px;
}

59
css/syntaxes.css Normal file

@ -0,0 +1,59 @@
.highlight .c { color: #999988; font-style: italic } /* Comment */
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
.highlight .k { font-weight: bold } /* Keyword */
.highlight .o { font-weight: bold } /* Operator */
.highlight .cm { color: #999988; font-style: italic } /* Comment.Multiline */
.highlight .cp { color: #999999; font-weight: bold } /* Comment.Preproc */
.highlight .c1 { color: #999988; font-style: italic } /* Comment.Single */
.highlight .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */
.highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
.highlight .gd .x { color: #000000; background-color: #ffaaaa } /* Generic.Deleted.Specific */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .gr { color: #aa0000 } /* Generic.Error */
.highlight .gh { color: #999999 } /* Generic.Heading */
.highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
.highlight .gi .x { color: #000000; background-color: #aaffaa } /* Generic.Inserted.Specific */
.highlight .go { color: #888888 } /* Generic.Output */
.highlight .gp { color: #555555 } /* Generic.Prompt */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #aaaaaa } /* Generic.Subheading */
.highlight .gt { color: #aa0000 } /* Generic.Traceback */
.highlight .kc { font-weight: bold } /* Keyword.Constant */
.highlight .kd { font-weight: bold } /* Keyword.Declaration */
.highlight .kp { font-weight: bold } /* Keyword.Pseudo */
.highlight .kr { font-weight: bold } /* Keyword.Reserved */
.highlight .kt { color: #445588; font-weight: bold } /* Keyword.Type */
.highlight .m { color: #009999 } /* Literal.Number */
.highlight .s { color: #d14 } /* Literal.String */
.highlight .na { color: #008080 } /* Name.Attribute */
.highlight .nb { color: #0086B3 } /* Name.Builtin */
.highlight .nc { color: #445588; font-weight: bold } /* Name.Class */
.highlight .no { color: #008080 } /* Name.Constant */
.highlight .ni { color: #800080 } /* Name.Entity */
.highlight .ne { color: #990000; font-weight: bold } /* Name.Exception */
.highlight .nf { color: #990000; font-weight: bold } /* Name.Function */
.highlight .nn { color: #555555 } /* Name.Namespace */
.highlight .nt { color: #000080 } /* Name.Tag */
.highlight .nv { color: #008080 } /* Name.Variable */
.highlight .ow { font-weight: bold } /* Operator.Word */
.highlight .w { color: #bbbbbb } /* Text.Whitespace */
.highlight .mf { color: #009999 } /* Literal.Number.Float */
.highlight .mh { color: #009999 } /* Literal.Number.Hex */
.highlight .mi { color: #009999 } /* Literal.Number.Integer */
.highlight .mo { color: #009999 } /* Literal.Number.Oct */
.highlight .sb { color: #d14 } /* Literal.String.Backtick */
.highlight .sc { color: #d14 } /* Literal.String.Char */
.highlight .sd { color: #d14 } /* Literal.String.Doc */
.highlight .s2 { color: #d14 } /* Literal.String.Double */
.highlight .se { color: #d14 } /* Literal.String.Escape */
.highlight .sh { color: #d14 } /* Literal.String.Heredoc */
.highlight .si { color: #d14 } /* Literal.String.Interpol */
.highlight .sx { color: #d14 } /* Literal.String.Other */
.highlight .sr { color: #009926 } /* Literal.String.Regex */
.highlight .s1 { color: #d14 } /* Literal.String.Single */
.highlight .ss { color: #990073 } /* Literal.String.Symbol */
.highlight .bp { color: #999999 } /* Name.Builtin.Pseudo */
.highlight .vc { color: #008080 } /* Name.Variable.Class */
.highlight .vg { color: #008080 } /* Name.Variable.Global */
.highlight .vi { color: #008080 } /* Name.Variable.Instance */
.highlight .il { color: #009999 } /* Literal.Number.Integer.Long */

BIN
css/syntaxes.min.css (Stored with Git LFS) vendored Normal file

Binary file not shown.