Skip to content

Instantly share code, notes, and snippets.

View rsboarder's full-sized avatar

Konstantin rsboarder

View GitHub Profile
@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active November 10, 2024 03:45
A badass list of frontend development resources I collected over time.
@idosela
idosela / http-response-interceptor.js
Last active February 25, 2024 12:51
Sample code for ng-conf 2014
angular.module('myMdl', []).config(['$httpProvider', function($httpProvider) {
$httpProvider.responseInterceptors.push([
'$q', '$templateCache', 'activeProfile',
function($q, $templateCache, activeProfile) {
// Keep track which HTML templates have already been modified.
var modifiedTemplates = {};
// Tests if there are any keep/omit attributes.
var HAS_FLAGS_EXP = /data-(keep|omit)/;
@averyvery
averyvery / spread.sass
Last active May 16, 2020 22:07
spread.sass
// strip-units required by spread mixin
// http://stackoverflow.com/questions/12328259/how-do-you-strip-the-unit-from-any-number-in-sass
@function strip-units($number)
@return $number / ($number * 0 + 1)
// pow and sqrt required by ease function
// adapted from https://github.com/at-import/Sassy-math/blob/master/sass/math.scss
@function pow($base, $exponent)
$value: $base
@fortl
fortl / dev.plurch.com.crt
Last active December 12, 2017 16:19
Настройка локальной разработки
-----BEGIN CERTIFICATE-----
MIIDLjCCAhYCCQDBY/svIVKS+DANBgkqhkiG9w0BAQsFADBZMQswCQYDVQQGEwJS
VTEPMA0GA1UECAwGTW9zY293MQ8wDQYDVQQHDAZNb3Njb3cxDzANBgNVBAoMBlBs
dXJjaDEXMBUGA1UEAwwOZGV2LnBsdXJjaC5jb20wHhcNMTQxMjAzMTIwOTA3WhcN
MTUxMjAzMTIwOTA3WjBZMQswCQYDVQQGEwJSVTEPMA0GA1UECAwGTW9zY293MQ8w
DQYDVQQHDAZNb3Njb3cxDzANBgNVBAoMBlBsdXJjaDEXMBUGA1UEAwwOZGV2LnBs
dXJjaC5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDgR92T9ShI
55/DfyRAIq39EcV6lWCZBG3nrgTSicE0t7RsSsyl4rzYgIUMchnpW/zEXnLKXy2w
ns7nGBfbkULxGxAN+OJN4qqYPySUig56SWr33mKpiaC7KIJj6o4Jidg4LWpMo8ca
DKV50eGe1TYOFn39u+GGESnLqEAnnSZAY+orO9cVTvljP/KxzzmNTK7BErn2sezU
@ilfroloff
ilfroloff / ClassA.js
Last active March 4, 2024 09:01
JavaScript Singleton using class
'use strict';
import Singleton from 'Singleton';
class ClassA extends Singleton {
constructor() {
super();
}
singletonMethod1() {
// ...