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 / gist:8453185
Created January 16, 2014 11:09
Better error message for replaced session in PuppetJS
Puppet.prototype.setReferer = function (referer) {
if(this.referer && this.referer !== referer) {
this.showError("Error: Session lost", "Server replied with a different session ID that was already set. \nPossibly a server restart happened while you were working. \nPlease reload the page.\n\nPrevious session ID: " + this.referer + "\nNew session ID: " + referer);
}
this.referer = referer;
};
@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 / jQuery.md
Last active December 3, 2021 16:51
Web Components from the perspective of a jQuery developer

Web Components as successor to jQuery

This article is a homage to jQuery - a library that once was a great boost for the productiveness of thousands of web developers around the world. In the upcoming times, the benefit of using it will drop as web developers start to switch to the web standards, including Web Components.

Status quo

As of early 2014, current state of interactive web development heavily relies on established web standards - HTML, CSS and JavaScript, all of which have been subject to consistent iterative improvement during the last few years, with the support of all major web browser vendors.

As a report shows, 57.8% of all websites use JavaScript, of which stunning 93.2% use the jQuery library to enhance the development (source). There is a long tail of other libraries and micro frameworks that are being used instead, or in compliment to jQuery, but none of them has gotten close to the popularity of t

@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 / jQuery.md
Last active October 4, 2015 15:26
Blog Post 3 - jQuery

Web Components from the perspective of a jQuery developer

This article is a homage to jQuery - a library that once was a great boost for the productiveness of thousands of web developers around the world. In the upcoming times, the benefit of using it will drop as web developers start to switch to the web standards, including Web Components.

Status quo

As of early 2014, current state of interactive web development heavily relies on established web standards - HTML, CSS and JavaScript, all of which have been subject to consistent iterative improvement during the last few years, with the support of all major web browser vendors.

As a report shows, 57.8% of all websites use JavaScript, of which stunning 93.2% use the jQuery library to enhance the development (source). There is a long tail of other libraries and micro frameworks that are being used instead, or in compliment to jQuery, but none of them has gotten close to

@warpech
warpech / web_components.md
Last active October 4, 2015 15:26
Blog Post 1 - Web Components

Web Components

Set of new technologies

Web Components is an umbrella term for the set of upcoming standards for web development (see the W3C Web Components page). Each on its own, they are a useful contribution to the current toolset of a web developer. But together they form a completely new paradigm of how web applications are created.

Web Components consist of 4 standards proposals: