Skip to content

Instantly share code, notes, and snippets.

View akhalizev's full-sized avatar
🏠
Working from home

Anatoly Khalizev akhalizev

🏠
Working from home
  • Saint Paul, Minnesota, United States
  • 10:47 (UTC -06:00)
  • X @ahalizev
View GitHub Profile
@font-face {
font-family: 'icomoon';
src: url('fonts/icomoon.eot?kjyi6f');
src: url('fonts/icomoon.eot?kjyi6f#iefix') format('embedded-opentype'),
url('fonts/icomoon.ttf?kjyi6f') format('truetype'),
url('fonts/icomoon.woff?kjyi6f') format('woff'),
url('fonts/icomoon.svg?kjyi6f#icomoon') format('svg');
font-weight: normal;
font-style: normal;
font-display: block;
@akhalizev
akhalizev / index.html
Created September 28, 2017 05:30
Beautify makes code not working in my Atom
//This is unstyled and working version.
<!DOCTYPE html>
<html>
<head>
<script src="https://fb.me/react-15.2.1.js"></script>
<script src="https://fb.me/react-dom-15.2.1.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.34/browser.js"></script>
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
<div id="peopleModule">
<input placeholder="name" type="text">
<button id="addPerson">Add Person</button>
<ul id="people">
<script id="people-template" type="text/template">
{{#people}}
<li>
<span>{{.}}</span>
<i class="del">X</i>
<div class="row">
    <div class="col-xs-4">
        your FB code here
    </div>
    <div class="col-xs-4">
        your Twitter code here
    </div>
    <div class="col-xs-4">
        your Pinterest code here
    </div>
@akhalizev
akhalizev / gist:7701933574b177ff2a81
Created February 10, 2016 14:44
Cannot start project (using npm start -- --port=9000, npm start, npm start -- --open commands)
➜ csssr-project-template git:(master) npm start -- --port=9000
> [email protected] start /Users/anatolykhalizev/Code/csssr-project-template
> gulp --debug "--port=9000"
[17:41:05] Requiring external module babel-register
/Users/anatolykhalizev/Code/csssr-project-template/gulp/copy.js:1
(function (exports, require, module, __filename, __dirname) { import gulp from 'gulp';
^^^^^^
@akhalizev
akhalizev / gist:bf700634e9081cfcf2df
Created June 11, 2015 07:59
Reading time in Jekyll
{% if site.reading_time %}
<span class="entry-reading-time">
<i class="fa fa-clock-o"></i>
{% assign readtime = post.content | number_of_words | divided_by:site.words_per_minute %}
Reading time ~{% if readtime <= 1 %}1 minute{% else %}{{ readtime }} minutes{% endif %}
</span><!-- /.entry-reading-time -->
{% endif %}

###SSH into a remote machine###

ssh [email protected]
#or by ip address
ssh [email protected]

exit: exit ###Install Something###

#If it's a new server, update apt-get first thing
@akhalizev
akhalizev / 0_reuse_code.js
Last active August 29, 2015 14:18
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console