Skip to content

Instantly share code, notes, and snippets.

Sławomir Rosiek rosieks

  • Warsaw
Block or report user

Report or block rosieks

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@rosieks
rosieks / ValuesController.cs
Created May 16, 2019
ASP.NET Core handling multipart form data request issue
View ValuesController.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
namespace aspnet_forddata_issue.Controllers
@rosieks
rosieks / batch.js
Created Jul 30, 2014
ASP.NET WebApi batching + durandal
View batch.js
define(function () {
var url = '/api/batch',
requests = [],
timeout;
return {
url: url,
get: request('GET'),
post: request('POST'),
@rosieks
rosieks / scroller.html
Created Mar 6, 2014
datatables scroller + initial start
View scroller.html
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script src="Scripts/jquery-2.1.0.js"></script>
<script src="Scripts/jquery.dataTables.js"></script>
<script src="Scripts/dataTables.scroller.js"></script>
</head>
<body>
<table>
@rosieks
rosieks / knockout.datatables.js
Created Feb 4, 2014
DataTables 1.10 binding handler for knockout
View knockout.datatables.js
(function ($, ko) {
ko.gridModel = function (requestData) {
var page = ko.observable(1),
pageSize = ko.observable(20).extend({ throttle: 0 }),
sortField = ko.observable().extend({ throttle: 0 }),
sortOrder = ko.observable('ASC').extend({ throttle: 0 }),
totalRows = ko.observable(),
items = ko.observableArray();
var model = {
You can’t perform that action at this time.