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
-- Check column collations | |
SELECT | |
col.name, col.collation_name | |
FROM | |
sys.columns col | |
WHERE | |
object_id = OBJECT_ID('table_name') | |
-- Change column collation | |
ALTER TABLE table_name |
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
SELECT name | |
FROM sys.procedures | |
WHERE Object_definition(object_id) LIKE '%search%' |
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
Dim i | |
For Each i In Session.Contents | |
Response.Write i & "<br>" | |
Next |
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
Error: | |
[ReflectionException] | |
Class Fxp\Composer\AssetPlugin\Repository\NpmRepository does not exist | |
[ErrorException] | |
Declaration of Fxp\Composer\AssetPlugin\Repository\AbstractAssetsRepository::whatProvides() shou | |
ld be compatible with Composer\Repository\ComposerRepository::whatProvides(Composer\DependencyRe | |
solver\Pool $pool, $name, $bypassFilters = false) |
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
Do Until rs.EOF | |
For Each field In rs.fields | |
response.write(field.name) | |
response.write(" = ") | |
response.write(field.value) | |
response.write("<br>") | |
Next | |
rs.MoveNext | |
Loop |
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
For Each field in Request.Form | |
response.write field | |
response.write "<br>" | |
response.write Request.Form(field) | |
response.write "<hr>" | |
Next |
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
<!-- Define a template --> | |
<xsl:template name="for-loop"> | |
<!-- Define parameters default value --> | |
<xsl:param name="index" select="1" /> | |
<xsl:param name="total" select="1" /> | |
<!-- TODO --> | |
<xsl:value-of select="$index" /> | |
<!-- TODO --> | |
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
$status = [ | |
'Visualizar' => 'Visualizar', | |
'Editar' => 'Editar', | |
'Boleto' => 'Gerar Boleto' | |
]; | |
// Define a chave => valor que será inserido no array | |
$pair = ['Status' => 'Alterar Status']; | |
// Procura no array pela chave e retorna o índice dela |
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
1. install openjdk | |
`sudo apt-get install openjdk-7-jdk` | |
2. install `android sdk` | |
# download android sdk | |
wget http://dl.google.com/android/android-sdk_r24.2-linux.tgz | |
tar -xvf android-sdk_r24.2-linux.tgz | |
cd android-sdk-linux/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
Set TypeDictionary = CreateObject("Scripting.Dictionary") | |
TypeDictionary.Add 0, "vbEmpty" | |
TypeDictionary.Add 1, "vbNull" | |
TypeDictionary.Add 2, "vbInteger" | |
TypeDictionary.Add 3, "vbLong" | |
TypeDictionary.Add 4, "vbSingle" | |
TypeDictionary.Add 5, "vbDouble" | |
TypeDictionary.Add 6, "vbCurrency" | |
TypeDictionary.Add 7, "vbDate" | |
TypeDictionary.Add 8, "vbString" |
OlderNewer