The popular open-source contract for web designers and developers by Stuff & Nonsense
- Originally published: 23rd December 2008
- Revised date: October 8th 2015
- Original post
eXtreme Go Horse (XGH) Process | |
Source: http://gohorseprocess.wordpress.com | |
1. I think therefore it's not XGH. | |
In XGH you don't think, you do the first thing that comes to your mind. There's not a second option as the first one is faster. | |
2. There are 3 ways of solving a problem: the right way, the wrong way and the XGH way which is exactly like the wrong one but faster. | |
XGH is faster than any development process you know (see Axiom 14). |
--show stats on table reads/writes | |
Select | |
object_schema_name(UStat.object_id) + '.' + object_name(UStat.object_id) As [Object Name], | |
Case | |
When sum(User_Updates + User_Seeks + User_Scans + User_Lookups) = 0 | |
Then Null | |
Else convert(decimal(5,2),round(Cast(sum(User_Seeks + User_Scans + User_Lookups) As Decimal) | |
/ Cast(sum(User_Updates |
--save PRE stats on index fragmentation | |
IF OBJECT_ID('tempdb..#tmp_PRE_reindex', 'U') IS NOT NULL DROP TABLE #tmp_PRE_reindex | |
SELECT | |
ROW_NUMBER() over (order by sDips.index_id) as 'rowid', | |
OBJECT_NAME(sDips.OBJECT_ID) as 'objid', |
<?php | |
class Asset_Instance extends Fuel\Core\Asset_Instance {} | |
class Cache_Handler_Json extends Fuel\Core\Cache_Handler_Json {} | |
class Cache_Handler_Serialized extends Fuel\Core\Cache_Handler_Serialized {} | |
class Cache_Handler_String extends Fuel\Core\Cache_Handler_String {} | |
class Cache_Storage_Apc extends Fuel\Core\Cache_Storage_Apc {} | |
abstract class Cache_Storage_Driver extends Fuel\Core\Cache_Storage_Driver {} | |
class Cache_Storage_File extends Fuel\Core\Cache_Storage_File {} | |
class Cache_Storage_Memcached extends Fuel\Core\Cache_Storage_Memcached {} |
$symbols = [PSCustomObject] @{ | |
SMILEY_WHITE = ([char]9786) | |
SMILEY_BLACK = ([char]9787) | |
GEAR = ([char]9788) | |
HEART = ([char]9829) | |
DIAMOND = ([char]9830) | |
CLUB = ([char]9827) | |
SPADE = ([char]9824) | |
CIRCLE = ([char]8226) | |
NOTE1 = ([char]9834) |
/** | |
* fixes the encoding of the values in an associative array | |
* | |
* usage: | |
* $formatted_rows = util::utf8ize($formatted_rows); | |
* echo json_encode($formatted_rows); | |
* | |
* @param assoc $arr array to be processed | |
* @return assoc processed array | |
*/ |
#!/bin/bash | |
# Sometimes you need to move your existing git repository | |
# to a new remote repository (/new remote origin). | |
# Here are a simple and quick steps that does exactly this. | |
# | |
# Let's assume we call "old repo" the repository you wish | |
# to move, and "new repo" the one you wish to move to. | |
# | |
### Step 1. Make sure you have a local copy of all "old repo" | |
### branches and tags. |
// 'Hello World' nodejs6.10 runtime AWS Lambda function | |
exports.handler = (event, context, callback) => { | |
console.log('Hello, logs!'); | |
callback(null, 'great success'); | |
} |