This file contains hidden or 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
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.html$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /index.html [L] | |
</IfModule> |
This file contains hidden or 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
private void gvSourceData_MouseDown(object sender, MouseEventArgs e) { | |
var gridView = sender as GridView; | |
GridHitInfo hi = hi = gridView.CalcHitInfo(gridControl.PointToClient(MousePosition)); | |
if (!hi.InRowCell && !hi.InColumn) { | |
((DXMouseEventArgs)e).Handled = true; | |
return; | |
} | |
gridView.ClearSelection(); |
This file contains hidden or 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
Update-Package -Reinstall -Project YourProjectName |
This file contains hidden or 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
<app-user></app-user> | |
<!-- <div app-user></div> --> | |
<!-- <div class="app-user"></div> --> |
This file contains hidden or 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 TABLE #users ( | |
Name VARCHAR(500), | |
DOB DATETIME, | |
PPSNumber VARCHAR(30) | |
) | |
BULK INSERT #users | |
FROM 'D:\Users.csv' | |
WITH | |
( |
This file contains hidden or 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, email, COUNT(*) | |
FROM | |
users | |
GROUP BY | |
name, email | |
HAVING | |
COUNT(*) > 1 |
This file contains hidden or 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
public interface ListItemClickListener { | |
void onListItemClick(int clickedItemIndex); | |
} |
This file contains hidden or 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
public final class NetworUtils { | |
private static final String BASE_URL = "https://api.example.com"; | |
private static final String FORMAT = "json"; | |
private static final String QUERY_PARAM = "q"; | |
private static final String SOME_OTHER_PARAM = "param"; | |
public static URL buildUrl(String queryParam, String someOtherParam) { | |
Uri constructUri = Uri.parse(BASE_URL).buildUpon() | |
.appendQueryParameter(QUERY_PARAM, queryParam) | |
.appendQueryParameter(SOME_OTHER_PARAM, someOtherParam) |
This file contains hidden or 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
private void openAnAppThatCanHandleThisIntent(Uri mapUri) { | |
Intent intent = new Intent(Intent.ACTION_VIEW); | |
if (intent.resolveActivity(getPackageManager()) != null) { | |
startActivity(intent); | |
} | |
} |
This file contains hidden or 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
public void onClickOpenAddressButton(View v) { | |
String address = "Cork Ireland"; | |
Uri.Builder builder = new Uri.Builder(); | |
builder.scheme("geo") | |
.path("0,0") | |
.appendQueryParameter("q", address); | |
Uri addressUri = builder.build(); | |
showMap(addressUri); |
NewerOlder