Skip to content

Instantly share code, notes, and snippets.

View warpech's full-sized avatar
🤹‍♂️
Code sweet code

Marcin Warpechowski warpech

🤹‍♂️
Code sweet code
View GitHub Profile
@warpech
warpech / Launcher-inner.html
Last active August 29, 2015 13:56
Launcher templates
<template bind="{{workspace.appThumbnails.<!-- incremental number goes here -->}}">
<!-- single app output goes here -->
</template>
@warpech
warpech / Program.cs
Created February 21, 2014 10:15
Test performance of >= && <= operators
using System;
using Starcounter;
using System.Diagnostics;
using System.Collections.Generic;
[Database]
public class TestRange
{
public int Name;
public long FromNum;
{
"dummyCRM":{
"Apps":[
{
"Appname":"En Bambim",
"Description":"Supercool En tracking app, made by Albert Einstein.",
"Html":"",
"Rating":0,
"Thumbnail":{
@warpech
warpech / gist:9249990
Last active August 29, 2015 13:56
Remote working Summer 2014

Time span

I vote for 2 weeks, but could be longer [Marcin]

Dates

  • Marcin: I can't on 29.06-2.07 and 19.07. Other dates are fine
  • Tomek ?
  • Alexey ?
  • Who else is interested?
@warpech
warpech / Program.cs
Created March 6, 2014 13:28
Object equality test
using System;
using Starcounter;
[Database]
public class Panda
{
public string Name;
}
class Program
@warpech
warpech / oferta_pracy.md
Last active August 29, 2015 13:57
Oferta pracy - Senior JavaScript Developer

Oferta pracy - Senior Web Components Developer (Gdynia)

🌊 Gdynia, 20 października 2014

Co robimy

Nextgen to :suspect::hurtrealbad: team programistów technologii JavaScript. Nasze biuro mieści się w PPNT w Gdyni. Poszukujemy programisty z doskonałą znajomością JavaScript i HTML5 do pracy przy nowym projekcie, opartym na Web Components i frameworku Polymer.

Polymer logo

@warpech
warpech / tasks.md
Last active August 29, 2015 14:00
Mayflower tasks list

Additional functionality

@warpech
warpech / gist:a66d992720d30d0507f7
Last active August 29, 2015 14:07
Client-server versioning in Puppets

Optional version control

Because of the asynchronous nature of bidirectional client-server communication (caused by network latency, server side push, etc), it can be assumed that client and the server state is always out of sync.

To solve the problem expressing changes in the view-model, optional server and client state versioning is introduced:

{
  "_ServerVersion": 0, 
 "_ClientVersion$": 0, 
@warpech
warpech / jquery.xdomain.js
Created December 15, 2011 16:10 — forked from mathieucarbou/jquery.xdomain.js
jQuery CORS Plugin - transparently add CORS support for IE8+ in jQuery using XDomainRequest. Support cookies.
(function($) {
var urlParseRE = /^(((([^:\/#\?]+:)?(?:\/\/((?:(([^:@\/#\?]+)(?:\:([^:@\/#\?]+))?)@)?(([^:\/#\?]+)(?:\:([0-9]+))?))?)?)?((\/?(?:[^\/\?#]+\/+)*)([^\?#]*)))?(\?[^#]+)?)(#.*)?/;
function parseUrl(url) {
if (typeof url === "object") {
return url;
}
var u = url || "", matches = urlParseRE.exec(url), results;
if (matches) {
results = {
@warpech
warpech / find-links.sh
Created December 18, 2014 12:12
Find Gollum linked pages and orphans