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 | |
/** | |
* @file My Drush Commands | |
*/ | |
/** | |
* Implementation of hook_drush_help() | |
*/ | |
function my_drush_help($section) { | |
switch ($section) { |
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
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEAv11JtNqeqxnonQelyHWzNiJMckYaZ8bgpBun8ZpFHs3+ZMEGmzxh2EkSUCfZ6guOMDlA9DrYchUTgzfwvkrQ05Bz+XHIO1c8a3aoNww1JZj7E6mYchOT7GnLS7Yq7Waj+sBvEDmbmh1s3I1jHC4Im/NJO+BwsMvmJskP/sG3WVM= kotnik@agnus |
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
#!/bin/bash | |
# Author: Remigijus Jarmalavičius <[email protected]> | |
# Author: Vytautas Povilaitis <[email protected]> | |
# Modifications: Nikola Kotur <[email protected]> | |
ROOT_DIR="$(pwd)/" | |
LIST=$(git status | grep -e '\#.*\(modified\|added\)') | |
ERRORS_BUFFER="" | |
for file in $LIST | |
do |
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 | |
$provider = new stdClass; | |
$provider->disabled = FALSE; /* Edit this to true to make a default provider disabled initially */ | |
$provider->name = 'sso1'; | |
$provider->title = 'sso1'; | |
$provider->url = 'http://sso1.loc/'; | |
$provider->consumer_advanced = array( | |
'signature method' => 'HMAC-SHA512', | |
'request token endpoint' => '/oauth/request_token', | |
'authorization endpoint' => '/oauth/authorize', |
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 | |
class LeClass { | |
private static $_thing = array( | |
'path' => BASE_PATH . '/tmp', | |
); | |
} |
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 | |
// Skrati na ovoliko znakova: | |
$max_duzina = 10; | |
// ukoliko je title duzi od: | |
$max_limit = 20; | |
$label_id = $this->get_field_id('title'); | |
$short_title = esc_attr($title); | |
if (strlen($short_title) >= $max_limit) { | |
$short_title = substr($short_title, 0, $max_duzina) . "..."; |
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
#!/usr/bin/env python2 | |
import re | |
import sys | |
import urllib | |
import urllib2 | |
from urlparse import urlparse | |
from xml.dom import minidom, getDOMImplementation | |
class Redmine: |
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 | |
/** | |
* @file | |
* Drush support for entities. | |
*/ | |
/** | |
* Define how a print out needs to be | |
*/ | |
define('DRUSH_ENTITY_SEPARATED_SPACE', 'space-separated'); |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#define for_x for (int x = 0; x < w; x++) | |
#define for_y for (int y = 0; y < h; y++) | |
#define for_xy for_x for_y | |
void show(void *u, int w, int h) | |
{ | |
int (*univ)[w] = u; |
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
/* SIGINT.c */ | |
/* Errors */ | |
#define RC_TARGET 13 | |
#define RC_SIGNAL_HANDLER 15 | |
#define RC_EXEC 23 | |
#define RC_BAD_OPTION 24 | |
/* INC */ | |
#include <stdio.h> |
OlderNewer