Skip to content

Instantly share code, notes, and snippets.

Avatar

Erez Lieberman erezLieberman

View GitHub Profile
View test.js
import React, { Component } from "react";
import "./App.css";
import {
Card,
CardText,
CardBody,
CardTitle,
Button,
Form,
FormGroup,
@erezLieberman
erezLieberman / Basic for test component method in react + jest + enzyme.js
Last active Aug 22, 2018
Basic for test component method in react + jest + enzyme because our decorator
View Basic for test component method in react + jest + enzyme.js
import React from 'react';
import _ from 'lodash';
import { mount, shallow } from 'enzyme';
import NameOfComponent from '../src/NameOfComponent';
describe('NameOfComponent Basic: ', () => {
it('should verified that component is exits', () => {
const wrapper = mount(
<NameOfComponent />
View diffrents-font-by-unicode-range.scss
@font-face {
font-family: 'Narkis Block M F';
src: url('fonts/NarkisBlock-Medium.otf');
font-weight: 500;
}
@font-face {
font-family: 'Narkis Block M F';
src: url('fonts/NarkisBlock-Regular.otf');
font-weight: 400;
@erezLieberman
erezLieberman / Udacity.com-Intro-to-Computer-Science-Course-Answers - Converting Seconds.py
Last active Oct 14, 2016
Udacity.com-Intro-to-Computer-Science-Course-Answers - Converting Seconds
View Udacity.com-Intro-to-Computer-Science-Course-Answers - Converting Seconds.py
# Write a procedure, convert_seconds, which takes as input a non-negative
# number of seconds and returns a string of the form
# '<integer> hours, <integer> minutes, <number> seconds' but
# where if <integer> is 1 for the number of hours or minutes,
# then it should be hour/minute. Further, <number> may be an integer
# or decimal, and if it is 1, then it should be followed by second.
# You might need to use int() to turn a decimal into a float depending
# on how you code this. int(3.0) gives 3
#
# Note that English uses the plural when talking about 0 items, so
View g_analytics_holder.js
$( window ).load( function(){
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-11504677-1', 'auto');
ga('send', 'pageview');
ga(function(tracker) {
View config.rb
http_path = ""
css_dir = "wp-content/themes/theme_name/"
sass_dir = "wp-content/themes/theme_name/"
images_dir = "images"
line_comments = true
sourcemap = true
@erezLieberman
erezLieberman / livechatinc.com widget - rtl.css
Last active Jan 7, 2016
livechatinc.com rtl support to chat widget
View livechatinc.com widget - rtl.css
caption,td,th{text-align:right;}
#wrapper{left:0;right:0;}
.outline{border-radius:10px 10px 0 0;}
#content .integration p{padding-right:0;padding-left:0;}
.ajax-loader{margin-right:5px;}
#title-container .title-button{float:left;}
#title-container #close-chat{margin-left:-12px;padding:6px 6px 5px 12px;}
#title-container #minimize{margin-left:5px;}
body.pop-out #notification{left:36px;right:5px;}
body.pop-out.state-chatting #notification{left:58px;}
View exmple.php
<base href="<?php echo site_url();?>/">