This is my personal settings file for ConEmu. It combines some of the interface niceties of cmder with the base ConEmu styles. Based on the default settings in build 150513.
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
-- Create an empty log table from an existing table | |
insert * into status_log from status; | |
truncate status_log; | |
-- Create function which inserts trigger-provided rows into a log table | |
CREATE OR REPLACE FUNCTION trg_status_log() | |
RETURNS trigger AS |
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
/* jshint node:true */ | |
var fs = require('fs'); | |
var path = require('path'); | |
var getModulesInDirectory; | |
/** | |
* Synchronously recurses a directory and it's subdirectories, returning | |
* an array of files found with the '.js' extension. | |
* | |
* @returns {Array} module file descriptors |
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
var fs = require('fs'); | |
var path = require('path'); | |
/** | |
* Mounts all of the routes defined in a directory, using the module paths | |
* to dictate the mount path. All '.js' files in the directory should be | |
* modules that export an Express.Router(). | |
*/ | |
module.exports = function (app, pathToRoutes) { | |
var modulePaths = getModulesInDirectory(pathToRoutes); |
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
mkdir ubuntu-postgis | |
cd ubuntu-postgis | |
vagrant init ondrejsika/ubuntu-postgis | |
vagrant up | |
vagrant ssh | |
sudo su | |
# Edit postgresql.conf to change listen address to '*': | |
sed -i "s/#listen_addresses = 'localhost'/listen_addresses = '*'/" "/etc/postgresql/9.1/main/postgresql.conf" |
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
// leave the preceding code unchanged... | |
private function map_loadHandler(event:MapEvent):void | |
{ | |
map.removeEventListener(MapEvent.LOAD, map_loadHandler); | |
// Get query string parameters for "z" and "ll", convert them to the necessary | |
// format, and attempt to set some map parameters to them. | |
var queryParams:Object = getQueryParams(); | |
if (queryParams.z && queryParams.ll) |
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
var request = require('request'); | |
var debug = require('debug')('arcgis-feature-stream'); | |
var noms = require('noms').obj; | |
function arcgisFeatureStream(options) { | |
var baseUrl = options.baseUrl; | |
var idField = options.idField; | |
var start = options.start || 0; | |
var step = options.step || 1000; |
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
/** | |
* Streams a geojson file to an existing cartodb dataset. | |
* This requires that the dataset is created in CartoDB | |
* initially using a subset (1st record) of geojson data. | |
*/ | |
var fs = require('fs'); | |
var through2 = require('through2'); | |
var geojsonStream = require('geojson-stream'); | |
var cartodbTools = require('cartodb-tools'); |
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
public static IHtmlString FormatOptional<T>(this HtmlHelper htmlHelper, Nullable<T> obj, string format = "{0}") where T : struct | |
{ | |
if (obj == null || !obj.HasValue) | |
{ | |
return new HtmlString(""); | |
} | |
return new HtmlString(String.Format(format, obj.Value)); | |
} |
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
public interface IValidatableEntity | |
{ | |
DbEntityValidationResult ValidateEntity(DbEntityEntry entityEntry, IDictionary<object, object> items, DMMSContext dbContext); | |
} |
OlderNewer