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 | |
# | |
# A generalised converter to convert all files of | |
# a given extension in a directory to another | |
# type. | |
# | |
# I simply assume that yourConverter can detect | |
# the input files' type, and figure out the | |
# destination type from $ext_out |
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
all: | |
sqlite3 test.db "CREATE TABLE IF NOT EXISTS test (id integer not null primary key, name varchar(20) not null)" | |
sqlite3 test.db "DELETE FROM test" | |
sqlite3 test.db "INSERT INTO test VALUES (1, 'a')" | |
gcc -o test -Wall -g -O2 `pkg-config --cflags --libs gtk+-3.0 libgda-ui-5.0 libgda-sqlite-5.0` test.c |
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/sh | |
COLUMN=`which column 2> /dev/null` | |
if test -z $COLUMN | |
then | |
echo "\`column' is not found in PATH. Cannot continue." | |
exit 1 | |
fi | |
current_branch=`git rev-parse --abbrev-ref HEAD` |
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
<?xml version="1.0" standalone="no"?><!--*- mode: nxml -*--> | |
<?xml-stylesheet type="text/xsl" href="moduleset.xsl"?> | |
<moduleset> | |
<repository type="git" name="github.com" | |
href="git://github.com/"/> | |
<autotools id="gnome-break-timer"> | |
<branch repo="github.com" module="GNOME/gnome-break-timer"/> | |
</autotools> |
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
[alias] | |
bisect-fixed = bisect bad | |
bisect-unfixed = bisect good |
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
(defun get-number-at-point () | |
(interactive) | |
(skip-chars-backward "0123456789.-") | |
(or (looking-at "[0123456789.-]+") | |
(error "No number at point")) | |
(string-to-number (match-string 0))) | |
(defun round-number-at-point-to-decimals (decimal-count) | |
(interactive "NDecimal count: ") | |
(let ((mult (expt 10 decimal-count))) |
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
session: | |
name: SiteSpecificSessionName | |
lifetime: 3600 |
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
DELIMITER $$ | |
CREATE FUNCTION `haversine` (lng1 FLOAT, lat1 FLOAT, lng2 FLOAT, lat2 FLOAT) | |
RETURNS float NO SQL DETERMINISTIC | |
BEGIN | |
SET @a = ABS(POWER(SIN(RADIANS(lat1 - lat2)) / 2, 2) + COS(RADIANS(lat1)) * COS(RADIANS(lat2)) * POWER(SIN(RADIANS(lng1 - lng2)) / 2, 2)); | |
RETURN 12756.200 * ATAN2(SQRT(@a), SQRT(1 - @a)); | |
END$$ |
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 | |
$rootNode | |
->children() | |
->arrayNode('state_machine') | |
->requiresAtLeastOneElement() | |
->beforeNormalization() | |
->ifArray() | |
->then(function($values) { | |
$ret = array(); |
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
RewriteEngine on | |
RewriteRule ^/$ http://172.16.72.131:8080/ [QSA,L,P] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule ^/(.*) http://172.16.72.131:8080/$1 [QSA,L,P] | |
Order allow,deny | |
Allow from all |
OlderNewer