sudo /Applications/Install\ macOS\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/VolumeName --applicationpath /Applications/Install\ macOS\ Sierra.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# vim:ft=zsh ts=2 sw=2 sts=2 | |
# Original Agnoster's theme - https://gist.github.com/3712874 | |
# A Powerline-inspired theme for ZSH | |
# Segment drawing. A few utility functions to make it easy and re-usable to draw segmented prompts | |
CURRENT_BG='NONE' | |
# Special Powerline characters | |
() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function dir_to_array($dir_name) { | |
$files_names = array(); | |
if (is_dir($dir_name)) { | |
$handle = opendir($dir_name); | |
while (false !== ($file_name = readdir($handle))) { | |
$file_path = $dir_name.$file_name; |
new_graphic_window()
- Checks other existing graphic windows. If so it creates a new graphic window without erasing previous ones.fact(k)
- Takes an integer as argument. Returnsk!
.sumfunction(StartIndex, EndIndex, Fct)
-StartIndex
andEndIndex
are signed integers andFct
is a function (defined withdeff()
for instance). Letk
be an integer then the functionsumfunction
returns the sum ofFct(k)
fork = StartIndex, ..., EndIndex
.
- Download the
useful-functions.sci
file and move it into your project's directory. - Copy and paste the line
exec useful-functions.sci
at the beginning of your file (afterclear;
if you use it). - Call any function you need.
Position dans le modèle OSI | Nom de la couche | Rôle de la couche |
---|---|---|
7 | Application | Point de contact avec les services réseaux |
6 | Présentation | Présentation des données : format, cryptage, encodage, ... |
5 | Session | Initialisation de la session, de sa gestion et de sa fermeture |
4 | Transport | Choix du protocole de transmission et préparation de l'envoi des données. Elle spécifie le numéro de port utilisé par l'application émettrice ainsi que le numéro de port de l'application réceptrice. Elle fragmente les données en plusieurs séquences (ou segments) |
3 | Réseau | Connexion logique entre les hôtes. Elle traite de tout ce qui concerne l'identification et le routage dans le réseau |
2 | Liaison de données | Éta |
Event | On Event Handler | Description |
---|---|---|
drag | ondrag | Fired when an element or text selection is being dragged. |
dragend | ondragend | Fired when a drag operation is being ended (for example, by releasing a mouse button or hitting the escape key). |
dragenter | ondragenter | Fired when a dragged element or text selection enters a valid drop target. |
dragexit | ondragexit | Fired when an element is no longer the drag operation's immediate selection target. |
dragleave | ondragleave | Fired when a dragged element or text selection leaves a valid drop target. |
dragover | ondragover | Fired when an element or text selection is being dragged over a valid drop target (every few hundred milliseconds). |
dragstart | ondragstart | Fired when the user starts dragging an element or text selection. |
drop | ondrop | Fired when an element |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// dependency : import UIKit | |
Float(Float(arc4random()) / Float(UINT32_MAX)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$VENDORS: webkit, moz, ms, o; | |
@mixin vendor-prefix($property, $values...) { | |
@each $vendor in $VENDORS { | |
-#{$vendor}-#{$property}: $values; | |
} | |
#{$property}: $values; | |
} | |
@mixin vendor-function($property, $func, $args...) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function isIntAnyway(x) { | |
if (Number(x) && x % 1 === 0) | |
return true; | |
return false; | |
} | |
// Checks if value is in array | |
function inArray(value, array) { | |
return array.indexOf(value) > -1; | |
} |