Skip to content

Instantly share code, notes, and snippets.

View tarto-dev's full-sized avatar
🎃
Never Gonna Give You Up 🎵

Clara C. tarto-dev

🎃
Never Gonna Give You Up 🎵
  • Conserto
  • Nantes, France
View GitHub Profile
jQuery(function($){
$('#Grid').mixitup({
onMixLoad: function(){
var hash = window.location.hash;
var noHash=hash.replace("#","");
// If hash in URL, use it as a filter in MixItUp
if(hash){
$('#Grid').mixitup('filter', noHash);
}
}
jQuery(function($){
$('#Grid').mixitup({
onMixLoad: function(){
var hash = window.location.hash;
var noHash=hash.replace("#","");
if(hash){
$('#Grid').mixitup('filter', noHash);
}
}
});
jQuery(function($){
$('#Grid').mixitup({
onMixLoad: function(){
var hash = window.location.hash;
var noHash=hash.replace("#","");
if(hash){
$('#Grid').mixitup('filter', noHash);
}
}
});
<?php
/**
* @file
* Configuration file for Drupal's multi-site directory aliasing feature.
*
* Drupal searches for an appropriate configuration directory based on the
* website's hostname and pathname. A detailed description of the rules for
* discovering the configuration directory can be found in the comment
* documentation in 'sites/default/default.settings.php'.
wget http://media.steampowered.com/client/steamcmd_linux.tar.gz;
tar -xvzf steamcmd_linux.tar.gz;
touch install_css.txt
nano/vi install_css.txt
// mettre ceci //
@ShutdownOnFailedCommand 1 //mettre à 0 si mise à jour de plusieurs serveurs
@NoPromptForPassword 1
//login <username> <password>
//for servers which don't need a login
<?php
//require_once('eugena_push_notif.module');
function _eugena_get_variables() {
$variables = array( 'eugena_pn_default_node_insert',
'eugena_pn_default_node_update',
'eugena_pn_default_comment_insert',
'eugena_push_notif_android_api_key',
<?php
//require_once('eugena_push_notif.module');
/**
* @file
* module permettant de gérer les notifications push sur différents supports
*/
[
{ "keys": ["ctrl+shift+n"], "command": "new_window" },
{ "keys": ["ctrl+shift+w"], "command": "close_window" },
{ "keys": ["ctrl+o"], "command": "prompt_open_file" },
{ "keys": ["ctrl+shift+t"], "command": "reopen_last_file" },
{ "keys": ["alt+o"], "command": "switch_file", "args": {"extensions": ["cpp", "cxx", "cc", "c", "hpp", "hxx", "h", "ipp", "inl", "m", "mm"]} },
{ "keys": ["ctrl+n"], "command": "new_file" },
{ "keys": ["ctrl+s"], "command": "save" },
{ "keys": ["ctrl+shift+s"], "command": "prompt_save_as" },
{ "keys": ["ctrl+f4"], "command": "close_file" },
function copris_demande_get_comments() {
die('plouf');
$nid = FALSE;
$json['comments'] = array();
$json['status'] = 400;
$json['message'] = 'Erreur de recuperation des donnees. Soit vous n\'avez pas accès à la node, soit il n\'y à pas de commentaires';
if(!empty($_POST['nid'])) {
$nid = $_POST['nid'];
<?php
function copris_demande_menu(){
$items['copris/demande'] = array(
'title' => t('Gestion des demandes'),
'description' => t('Gerez vos demandes'),
'page callback' => 'copris_demande_get_list',
'type' => MENU_NORMAL_ITEM,
'access arguments' => array('Access demande'),
);