- https://github.com/danialfarid/angular-file-upload
- https://github.com/twilson63/ngUpload
- http://blueimp.github.io/jQuery-File-Upload/angularjs.html
- http://blog.brunoscopelliti.com/a-directive-to-manage-file-upload-in-an-angularjs-application
- http://badwing.com/multipart-form-data-ajax-uploads-with-angularjs/
- http://shazwazza.com/post/Uploading-files-and-JSON-data-in-the-same-request-with-Angular-JS
- http://flowjs.github.io/ng-flow/
- http://uncorkedstudios.com/blog/multipartformdata-file-upload-with-angularjs
- http://badwing.com/multipart-form-data-ajax-uploads-with-angularjs/
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
class Animal { } | |
class Dog : Animal { } | |
void PrintTypes(Animal a) { | |
print(a.GetType() == typeof(Animal)) // false | |
print(a is Animal) // true | |
print(a.GetType() == typeof(Dog)) // true | |
} | |
Dog spot = new Dog(); |
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
<umbraco:Macro runat="server" language="cshtml"> | |
<img src="@Library.MediaById(Model.YourPropertyAlias).umbracoFile" alt"@Library.MediaById(Model.YourPropertyAlias).nodeName"> | |
</umbraco:Macro> |
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
ul#school-location-list { | |
display: block; | |
font-size: 0; | |
} | |
li { | |
display: inline-block; | |
width: 33.333%; /* if you have a margin, subtract from this */ | |
font-size: 13px; | |
} |
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
namespace PrimaryAssembly | |
{ | |
using System; | |
using System.Linq; | |
using System.Reflection; | |
class MyCompilerClass | |
{ | |
public MyCompilerClass() | |
{ |
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
string key = GetClickTrackerCacheKey(clickTrackerReportQueryParameters); | |
Cache cache = HttpRuntime.Cache; | |
if (cache[key] == null) | |
{ | |
clickTrackerReport = CreateRenderModelValue(clickTrackerReportQueryParameters, clickTrackerReport); | |
cache.Add(key, clickTrackerReport, null, | |
DateTime.Now.AddMinutes(Utility.ReadConfigurationSetting("DataCacheTime", 0)), TimeSpan.Zero, | |
CacheItemPriority.Normal, null); | |
} |
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
public static class PaginationHelper | |
{ | |
public static int GetPageCount(int records, int recordsPerPage) | |
{ | |
//int pageCount1 = (records + recordsPerPage - 1) / recordsPerPage; // original solution | |
int pageCount2 = (records - 1) / recordsPerPage + 1; // simplified version of pageCount1 | |
return pageCount2; | |
} |
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
public class DateTimeToFromTicksParser | |
{ | |
public static long ConvertDateTimeToTicks(DateTime dtInput) | |
{ | |
long ticks = dtInput.Ticks; | |
return ticks; | |
} | |
public static DateTime ConvertTicksToDateTime(long lticks) | |
{ |
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
using System.Collections.Specialized; | |
using System.Configuration; | |
namespace ConsoleApplication | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
NameValueCollection settings = (NameValueCollection)ConfigurationManager.GetSection("myAppSettingsGroup"); |
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
public class CustomGlobal : UmbracoApplication | |
{ | |
public void Init(HttpApplication application) | |
{ | |
application.PreRequestHandlerExecute += application_PreRequestHandlerExecute; | |
application.BeginRequest += this.Application_BeginRequest; | |
application.EndRequest += this.Application_EndRequest; | |
application.Error += Application_Error; | |
} |