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
./create <project_folder_path> <package_name> <project_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
/* | |
Note: Normally let javascript determine iphone 4, iphone 5, ipad etc | |
and use the below queries in separate iphone.css, iphone5.css, | |
ipad.css files !as needed!. */ | |
/* RETINA styles (LANDSCAPE) */ | |
@media all and (orientation:landscape) and (-webkit-min-device-pixel-ratio: 2) { | |
} |
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
/* | |
Setting up Chrome DevTools AutoSave with NodeJS! | |
Source: http://addyosmani.com/blog/autosave-changes-chrome-dev-tools | |
OSX Batch: https://github.com/NV/chrome-devtools-autosave-server/blob/master/README.mdown | |
My Install Notes: For any poor saps on Windows (like me) - the path was a bit bumpy | |
to get this working. Here are my notes that got it working for me | |
on Windows 7 x64. |
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
Show hidden characters
{ | |
"files": | |
{ | |
"jquery" : "http://code.jquery.com/jquery.min.js", | |
"jquery-ui-effects" : "https://raw.github.com/jquery/jquery-ui/master/ui/jquery.effects.core.js", | |
"jquery-mobile-vmouse" : "https://raw.github.com/jquery/jquery-mobile/master/js/jquery.mobile.vmouse.js", | |
"jquery-flexslider" : "https://raw.github.com/mbmufffin/FlexSlider/master/jquery.flexslider-min.js", | |
"jquery-mediaelement" : "https://raw.github.com/johndyer/mediaelement/master/build/mediaelement-and-player.js", | |
"jquery-url" : "https://raw.github.com/allmarkedup/jQuery-URL-Parser/master/jquery.url.js", | |
"jquery-dotimeout" : "https://raw.github.com/cowboy/jquery-dotimeout/master/jquery.ba-dotimeout.min.js", |
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
So I haven't seen anybody create a html5 boilerplate build system for sublime so here is a really simple one! | |
Just make sure ant is in your PATH vars and it should work based on if you keep your build folder in the root of your project. | |
{ | |
"cmd" : ["ant", "-buildfile", "$file_path\\build\\build.xml"], | |
"selector": "source.html", | |
"windows": { | |
"cmd" : ["ant.bat", "-buildfile", "$file_path\\build\\build.xml"] | |
} |
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
/* ---------------------------------------- / | |
/ FUNCTION_NAME() | |
/ --------------------------------------- */ | |
public bool FUNCTION_NAME(){ | |
bool isTrue = false; | |
try{ | |
// function code here | |
isTrue = true; | |
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
try http://github.com/erica/uidevice-extension/ | |
[[UIDevice currentDevice] platformType] // ex: UIDevice4GiPhone | |
[[UIDevice currentDevice] platformString] // ex: @"iPhone 4G" | |
or you can just watch screenHeight like: | |
float screenHeight = [UIScreen mainScreen].bounds.size.height; | |
for the iPhone 5 height is 568 | |
and maybe you shell to set nib if you load with an .xib like: |
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
From: http://forums.asp.net/t/1796878.aspx/1 | |
Calling a mysql stored procedure in c# | Apr 25, 2012 02:38 PM|LINK | |
I spent several hours banging my head against the wall on this because everywhere I looked it said to do it a certain way and no matter what I tried I could not get it to work. Finally I tried a different what that I hadnt seen anyone post anywhere that I could find (not saying its not out there just that I couldnt find it. So Im posting my solution in case anyone out there runs into the same headache I did. | |
string conn = "server=servername;database=0000;Persist Security Info=True;User Id=username;password=pwrd"; | |
MySqlConnection sql_conn = new MySqlConnection(conn); | |
MySqlCommand cmd = new MySqlCommand(); |
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 a.id as club_id, | |
a.fr_name as club_name, | |
b.id as nation_id, | |
b.fr_name as nation_name, | |
c.id as player_id, | |
c.fr_fname as player_name | |
FROM fr_clubs as a | |
INNER JOIN fr_nations as b | |
ON a.id = b.club_id |
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
Method 1: | |
//Response.ClearHeaders(); | |
//Response.AppendHeader("Cache-Control", "no-cache"); //HTTP 1.1 | |
//Response.AppendHeader("Cache-Control", "private"); // HTTP 1.1 | |
//Response.AppendHeader("Cache-Control", "no-store"); // HTTP 1.1 | |
//Response.AppendHeader("Cache-Control", "must-revalidate"); // HTTP 1.1 | |
//Response.AppendHeader("Cache-Control", "max-stale=0"); // HTTP 1.1 | |
//Response.AppendHeader("Cache-Control", "post-check=0"); // HTTP 1.1 | |
//Response.AppendHeader("Cache-Control", "pre-check=0"); // HTTP 1.1 | |
//Response.AppendHeader("Pragma", "no-cache"); // HTTP 1.1 |