This file contains hidden or 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
/* définition du style des liens "normaux (non survolés)*/ | |
a { | |
color: #666666; | |
background-color: transparent; | |
} | |
/* maintenant, en ajoutant ":hover", on définit le style au survol */ | |
a:hover { | |
color: #FF00000; /* la couleur des liens survolés */ |
This file contains hidden or 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
<div class="video-container"> | |
<iframe src="http://player.vimeo.com/video/41283932" width="500" height="281" frameborder="0"> | |
</iframe> | |
</div> | |
<!-- note that width and height parameters are useless here because mian CSS sets them dynamically after page loading. They are however required to be valid HTML, according to the W3C specification --> |
This file contains hidden or 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 | |
$postsArray = Array(); // un tableau vide | |
while ( have_posts() ) : the_post(); // on boucle avec tous les articles | |
$currentPost = Array(); // un tableau vide pour l'article en cours | |
$currentPost["title"] = the_title(); // on ajoute le titre | |
$currentPost["url"] = the_permalink(); // l'url | |
array_push($postsArray, $currentPost); // et on ajoute le tableau de l'article au tableau global |
This file contains hidden or 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
add_action( 'transition_post_status', 'a_new_post', 10, 3 ); | |
function a_new_post( $new_status, $old_status, $post ) | |
{ | |
if ( 'publish' !== $new_status or 'publish' === $old_status ) | |
{ | |
return; | |
} | |
$postsArray = Array(); // un tableau vide | |
This file contains hidden or 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
var searchIndex = null; | |
var results = []; | |
jQuery(document).ready(function() { | |
Search.getSearchIndex(); | |
jQuery('#s').keyup(function() { | |
// get search term | |
var search_term = jQuery(this).val().toLowerCase(); | |
// run the search | |
Search.doSearch(search_term); |
This file contains hidden or 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 | |
$a = ""; | |
var_dump(($a == null)); //outputs false | |
var_dump(($a === null)); //outputs true | |
var_dump(is_null($a)); //outputs true | |
$b; | |
var_dump(($b == null)); //outputs true | |
var_dump(($b === null)); //outputs true |
This file contains hidden or 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
declare function neutral { | |
return ship:mass*9.81 / ship:availablethrust. | |
} | |
declare function limits { | |
declare parameter value. | |
return min(max(value, 0), 1.0). | |
} | |
declare function steer_iip { |
This file contains hidden or 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
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev | |
update_config=1 | |
country=GB | |
network={ | |
ssid="eduroam" | |
key_mgmt=WPA-EAP | |
identity="ABERTAY STUDENT NO" | |
password="ABERTAY PASSWORD" |
This file contains hidden or 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
fun fibonacci(n: Number) -> Number { | |
if n < 2 { | |
return 1 | |
} | |
return fibonacci(n-2) + fibonacci(n-1) | |
} | |
fun main() -> Void { | |
print("OrbitVM running on " + System.getOS()) | |
print("Fibonacci demo:") |
This file contains hidden or 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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <stdint.h> | |
#include <stdbool.h> | |
typedef uint32_t StringID; | |
typedef struct _String String; | |
typedef struct _StringPool StringPool; |
OlderNewer