hangman.py
Guess a Letter:hint ------ | | | 0 | /|\ | / t y p h u _ e _ Wrong Guesses:lmaio Guess a Letter:s ------ | | | 0 | /|\ | / t y p h u s e s Wrong Guesses:lmaio stay of execution
Guess a Letter:hint ------ | | | 0 | /|\ | / t y p h u _ e _ Wrong Guesses:lmaio Guess a Letter:s ------ | | | 0 | /|\ | / t y p h u s e s Wrong Guesses:lmaio stay of execution
select initcap(replace(lower('SOME_COLUMN_NAME'),'_',' ')) from dual;
Sub Capitalization_Split() 'Declaring variables Dim Cell As Range Dim Source As Range Dim Capitalized As String Dim Humps As Variant Dim Hump As String Dim i As Long 'Initializing source range Set Source = Application.Selection 'Looping through each cell in the source range For Each Cell In Source Capitalized = "" Hump = Cell.Value Humps = Split(Hump, "_") For i = LBound(Humps, 1) To UBound(Humps, 1) Hump = UCase(Left(Humps(i), 1)) & LCase(Right(Humps(i), Len(Humps(i)) - 1)) Capitalized = Capitalized & Hump & " " Next Cell.Value = Capitalized Next End Sub
<cfscript> myQuery=QueryNew("Country,Capital City,Amount##","varchar,varchar,numeric"); /*Add array values in column*/ myAreaValues=ArrayNew(1); myAreaValues[1]=100000; myAreaValues[2]=50000; myQuery.addColumn("Area","integer",myAreaValues); WriteDump(myQuery); </cfscript>
<tr><td><xsl:for-each select="tokenize(customerinfo/@comments, '
')"> <xsl:value-of select="." /><br/> </xsl:for-each></td></tr>
<cfscript> variables.myJSON = {"ugly":"put in some ugly/compressed json here"}; variables.objJSON = CreateObject("java","com.google.gson.GsonBuilder").setPrettyPrinting().create(); variables.objParser= CreateObject("java","com.google.gson.JsonParser"); variables.jsonElement = variables.objParser.parse(variables.myJSON); variables.result = variables.objJSON.toJson(variables.jsonElement); WriteOutput("<textarea cols='80' rows='20'>#variables.result#</textarea>"); </cfscript>