Start with a list that looks like this:
public string MyProperty
public int MySecondProperty
public bool HoweverManyPropertiesYouWant
...then run a Find/Replace using regular expressions as follows:
Find:
MapEditMode _mapEditMode = MapEditMode.normal; | |
private void wpfMap1_MapClick(object sender, ThinkGeo.MapSuite.WpfDesktopEdition.MapClickWpfMapEventArgs e) { | |
if (_mapEditMode == MapEditMode.add_text) { | |
_mapEditMode = MapEditMode.adding_text; | |
wpfMap1.Cursor = Cursors.Arrow; | |
var canvas = new Canvas(); | |
TextEditor editor = null; |
/* | |
Find all tables having more than X rows | |
----- | |
Prints table name if the table has more than @minRows rows | |
Replace #{DBNAME} with database name | |
Edit (or remove) where clause as desired | |
*/ | |
select 'declare @name varchar(50), @ct int, @minRows int; | |
set @minRows = 0;' |
declare @s varchar(4000); | |
set @s = null; | |
select @s = coalesce(@s + ', ' + column_name, column_name) | |
from information_schema.COLUMNS | |
where TABLE_NAME = 'sb_tmpSamplePAList'; | |
select @s; |
(function() { | |
var boName = prompt('What do you want to name this build order?'); | |
var supply = 6; | |
var orders = $('<ol></ol>').css({'list-style-type':'none'}); | |
// For the duration this window is displayed, suspend the | |
// document events trapping selection/mousedown/etc so that | |
// the user can select/copy/paste the build order. See the | |
// click handler on the close buttons for event restoration. | |
var docEvents = jQuery.extend(true, {}, $(document).data('events')); |
Start with a list that looks like this:
public string MyProperty
public int MySecondProperty
public bool HoweverManyPropertiesYouWant
...then run a Find/Replace using regular expressions as follows:
Find:
# Prompts for filename then base64-encodes the given file's contents and | |
# writes a new .base64 file in the same directory with the encoded contents. | |
# Handy for encoding stuff via irb. | |
require 'base64' | |
Proc.new {|filename| IO.write(filename.chomp(File.extname(filename)) + '.base64', Base64.strict_encode64(IO.binread(filename))) }.call([(print 'Filename: '), gets.rstrip][1]) |
-- From http://stackoverflow.com/a/4849704/81554 | |
SELECT c.name AS ColName, t.name AS TableName | |
FROM sys.columns c | |
JOIN sys.tables t ON c.object_id = t.object_id | |
WHERE c.name LIKE '%MyName%' | |
SELECT COLUMN_NAME, TABLE_NAME | |
FROM INFORMATION_SCHEMA.COLUMNS | |
WHERE COLUMN_NAME LIKE '%MyName%' |
location / { | |
proxy_pass http://<ip-address-of-new-server>; | |
proxy_set_header Host $http_host; | |
proxy_redirect off; | |
proxy_buffering off; | |
} |
[alias] | |
alias = config --get-regexp ^alias | |
editconfig = !sub ~/.gitconfig | |
lol = log --graph --decorate --pretty=oneline --abbrev-commit --all | |
mylog = log --graph --decorate --all --oneline | |
tlog = !TortoiseGitProc.exe /command:log & | |
ci = commit | |
s = status -s | |
lg = log --graph --decorate --all --oneline | |
dt = difftool -y --dir-diff |
<?php | |
// functions.php | |
add_shortcode( 'contentbox', 'mw_shortcode_contentbox' ); | |
function mw_shortcode_contentbox( $attrs, $content = '' ) { | |
$parsed_attrs = shortcode_atts( array( | |
'align' => '' | |
), $attrs ); | |