Skip to content

Instantly share code, notes, and snippets.

View arupbg's full-sized avatar

Arup Banerjee arupbg

View GitHub Profile
@arupbg
arupbg / sm-calendar.component.html
Created April 18, 2019 14:13 — forked from icepeng/sm-calendar.component.html
Semantic UI Calendar / Angular
<div class="ui calendar">
<div class="ui input right icon">
<i class="calendar icon"></i>
<input type="text" [placeholder]="placeholder" [value]="date" (blur)="onBlur()">
</div>
</div>
@arupbg
arupbg / enzyme_render_diffs.md
Created February 19, 2019 21:41 — forked from fokusferit/enzyme_render_diffs.md
Difference between Shallow, Mount and render of Enzyme

Shallow

Real unit test (isolation, no children render)

Simple shallow

Calls:

  • constructor
  • render
@arupbg
arupbg / function-chain.js
Created February 12, 2019 11:09 — forked from golbin/function-chain.js
JavaScript Function Chain & Lazy Evaluation
var _ = require('lodash');
var numbers = [1, 2, 3];
var result =
_.map(numbers, function (val) { // numbers를 전부 돌면서 값에 1씩 더해서 새로운 배열을 리턴한다.
return val + 1;
})
.filter(function (val) { // 위에서 생성된 배열에서 값이 2보다 큰 요소만 배열로 만들어서 리턴한다.
return val > 2;
@arupbg
arupbg / 1. main.css
Created July 12, 2018 11:26 — forked from EmranAhmed/1. main.css
CSS Responsive breakpoint, Media Query break point
/*==================================================
= Bootstrap 3 Media Queries =
==================================================*/
/*========== Mobile First Method ==========*/
/* Custom, iPhone Retina */
@media only screen and (min-width : 320px) {
}
@arupbg
arupbg / gist:ba901988b17a040a799047544871b02b
Created March 8, 2018 19:31 — forked from jaydson/gist:1780598
How to detect a click event on a cross domain iframe
var myConfObj = {
iframeMouseOver : false
}
window.addEventListener('blur',function(){
if(myConfObj.iframeMouseOver){
console.log('Wow! Iframe Click!');
}
});
document.getElementById('YOUR_CONTAINER_ID').addEventListener('mouseover',function(){