Skip to content

Instantly share code, notes, and snippets.

View pvpshoot's full-sized avatar
🍎

Mike Sinyakov pvpshoot

🍎
  • Rostelecom IT
  • Ulyanovsk
View GitHub Profile
$tile-len: 50
$tile-color: $nav1-col,$nav2-col,$nav3-col,$nav4-col,$nav5-col,$nav6-col,$nav7-col
@for $i from 1 through $tile-len
&:nth-child(#{$i})
.big-block
background: nth($tile-color, $i % length($tile-color) +1)
&:hover
background-color: lighten(nth($tile-color, $i % length($tile-color) +1), 2%)
$(document).ready(function () {
$('.humburger').on('click', function () {
if (!$(this).hasClass('in')) {
$(this).addClass('in');
$('.main-nav').addClass('in');
}
else{
$(this).removeClass('in');
$('.main-nav').removeClass('in');
@pvpshoot
pvpshoot / SassMeister-input-HTML.html
Created July 29, 2015 12:58
Generated by SassMeister.com.
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
<div class="star-rating">
<div class="star-rating__wrap">
<input class="star-rating__input" id="star-rating-5" type="radio" name="rating" value="5">
<label class="star-rating__ico fa fa-star-o fa-lg" for="star-rating-5" title="5 out of 5 stars"></label>
<input class="star-rating__input" id="star-rating-4" type="radio" name="rating" value="4">
<label class="star-rating__ico fa fa-star-o fa-lg" for="star-rating-4" title="4 out of 5 stars"></label>
<input class="star-rating__input" id="star-rating-3" type="radio" name="rating" value="3">
<label class="star-rating__ico fa fa-star-o fa-lg" for="star-rating-3" title="3 out of 5 stars"></label>
<input class="star-rating__input" id="star-rating-2" type="radio" name="rating" value="2">
2016-04-25 16:43:55,302 DEBUG [http-bio-8080-exec-16] : Opening JPA EntityManager in OpenEntityManagerInViewFilter
2016-04-25 16:43:55,302 DEBUG [http-bio-8080-exec-16] : Checking match of request : '/do_login'; against '/build/**'
2016-04-25 16:43:55,302 DEBUG [http-bio-8080-exec-16] : Checking match of request : '/do_login'; against '/login'
2016-04-25 16:43:55,302 DEBUG [http-bio-8080-exec-16] : Checking match of request : '/do_login'; against '/frame'
2016-04-25 16:43:55,302 DEBUG [http-bio-8080-exec-16] : /do_login at position 1 of 12 in additional filter chain; firing Filter: 'SecurityContextPersistenceFilter'
2016-04-25 16:43:55,302 DEBUG [http-bio-8080-exec-16] : HttpSession returned null object for SPRING_SECURITY_CONTEXT
2016-04-25 16:43:55,302 DEBUG [http-bio-8080-exec-16] : No SecurityContext was available from the HttpSession: org.apache.catalina.session.StandardSessionFacade@6272bffc. A new one will be created.
2016-04-25 16:43:55,302 DEBUG [http-bio-8080-exec-16] : /do_login at position 2 of 12
class Maybe{
constructor(val){
this._value = val;
}
static of = x => new Maybe(x);
isNothing = () => (this.__value === null || this.__value === undefined);
map = () => this.isNothing() ? Maybe.of(null) : Maybe.of(f(this.__value));
This file has been truncated, but you can view the full file.
/******/ (function(modules) { // webpackBootstrap
/******/ var parentHotUpdateCallback = this["webpackHotUpdate"];
/******/ this["webpackHotUpdate"] =
/******/ function webpackHotUpdateCallback(chunkId, moreModules) { // eslint-disable-line no-unused-vars
/******/ hotAddUpdateChunk(chunkId, moreModules);
/******/ if(parentHotUpdateCallback) parentHotUpdateCallback(chunkId, moreModules);
/******/ }
/******/
/******/ function hotDownloadUpdateChunk(chunkId) { // eslint-disable-line no-unused-vars
/******/ var head = document.getElementsByTagName("head")[0];
@pvpshoot
pvpshoot / Pattern matching
Created March 20, 2017 07:45
fp-switch, pattern matching
const patternMatch = (o, cond, or) => {
if (typeof o[cond] !== 'function') {
return or || null;
}
return o[cond]();
}
const TEST = {
lol(){ return: 'lol' },
@pvpshoot
pvpshoot / trace.js
Last active April 21, 2017 11:09
Debug fucntion for compose
const trace = tag => x => {
console.log(tag, x);
return x;
};
@pvpshoot
pvpshoot / cloudSettings
Last active November 22, 2021 18:58
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-03-10T09:18:02.381Z","extensionVersion":"v2.9.0"}