#HTML Selects
JQuery mobile http://jquerymobile.com/
Sencha touch http://www.sencha.com/products/touch/
BootStrap http://twitter.github.com/bootstrap/
Sleek, intuitive, and powerful front-end framework for faster and easier web development.
#HTML Selects
JQuery mobile http://jquerymobile.com/
Sencha touch http://www.sencha.com/products/touch/
BootStrap http://twitter.github.com/bootstrap/
Sleek, intuitive, and powerful front-end framework for faster and easier web development.
<CustomPatterns> | |
<Pattern Severity="SUGGESTION"> | |
<Comment>Method StringBuilder.Append can be converted to StringBuilder.AppendFormat</Comment> | |
<ReplaceComment>Convert to StringBuilder.AppendFormat</ReplaceComment> | |
<ReplacePattern>$sb$.AppendFormat($args$)</ReplacePattern> | |
<SearchPattern>$sb$.Append(string.Format($args$))</SearchPattern> | |
<Params /> | |
<Placeholders> | |
<ExpressionPlaceholder Name="sb" ExpressionType="System.Text.StringBuilder" ExactType="True" /> | |
<ArgumentPlaceholder Name="args" Minimal="-1" Maximal="-1" /> |
using System; | |
using System.Runtime.InteropServices; | |
using System.Text; | |
namespace WindowsGameMetadataRetriever | |
{ | |
[Flags()] | |
enum SlgpFlags | |
{ | |
/// <summary>Retrieves the standard short (8.3 format) file name</summary> |
public static String findCommonPrefix(List<String> strings) | |
{ | |
if (strings.size() == 0) | |
return ""; | |
String prefix = strings.get(0); | |
for (int i = 1, s = strings.size(); s > i; i++) | |
{ | |
String str = strings.get(i); | |
for (int j = 0, l = Math.min(prefix.length(), str.length()); l > j; j++) |
mov ax, 0x0E6A | |
int 0x10 | |
times 510-($-$$) db 0 | |
db 0x55 ; required for some BIOS's | |
db 0xAA |
# git | |
alias gl='git pull' | |
alias gp='git push' | |
alias gd='git diff | mate' | |
alias gdh='git diff HEAD | mate' | |
alias gc='git commit -v' | |
alias gca='git commit -v -a' | |
alias gcap='git commit -v -a && git push' | |
alias gb='git branch' | |
alias gba='git branch -a' |
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
// TTF_Init() must be called before using this function. | |
// Remember to call TTF_Quit() when done. | |
void drawText | |
(SDL_Surface* screen, char* string, | |
int size, int x, int y, | |
int fR, int fG, int fB, | |
int bR, int bG, int bB) | |
{ |
CL-USER> (test-steinhart-hart) | |
Steinhart-hart coefficients for the ACI/10K-CP curve are: | |
A: 0.0011212672 | |
B: 2.3534849E-4 | |
C: 8.3802405E-8 | |
Resistance: 336450.0 Expected: -40.0 Calculated: -39.999985 | |
Resistance: 242660.0 Expected: -35.0 Calculated: -35.009888 | |
Resistance: 176960.0 Expected: -30.0 Calculated: -30.018707 | |
Resistance: 130410.0 Expected: -25.0 Calculated: -25.02591 |
CL-USER> (test-steinhart-hart) | |
Steinhart-hart coefficients for the ACI/10K-CP curve are: | |
A: 0.0011212672 | |
B: 2.3534849E-4 | |
C: 8.3802405E-8 | |
Resistance: 336450.0 Expected: -40.0 Calculated: -39.999985 | |
Resistance: 242660.0 Expected: -35.0 Calculated: -35.009888 | |
Resistance: 176960.0 Expected: -30.0 Calculated: -30.018707 | |
Resistance: 130410.0 Expected: -25.0 Calculated: -25.02591 |