Skip to content

Instantly share code, notes, and snippets.

View itspoma's full-sized avatar
🔔
Contact if you have a project!

Roman Rodomansky itspoma

🔔
Contact if you have a project!
View GitHub Profile
@JacobDB
JacobDB / inline-svg-function.scss
Created January 26, 2017 17:45 — forked from B-iggy/inline-svg-function.scss
Inline SVG function [SASS]
// Replace letters
@function str-replace($string, $search, $replace: '') {
$index: str-index($string, $search);
@if $index {
@return str-slice($string, 1, $index - 1) + $replace + str-replace(str-slice($string, $index + str-length($search)), $search, $replace);
}
@return $string;
}
@ogajvoronsky
ogajvoronsky / ruby-env-install.sh
Last active January 15, 2020 01:52
Cursor education-Environment setup script
#/bin/bash
# --=== Ruby env installation ===--
# Oleksiy Haivoronsky (ogajvoronsky@gmail.com) - 27.09.2016
ruby_mine_URL='https://download.jetbrains.com/ruby/RubyMine-2016.2.3.tar.gz'
# jump to user's home directory
cd ~
@listochkin
listochkin / Ссылки-JSunderhood
Created May 31, 2015 13:49
Неделя jsunderhood. Все ссылки, которыми я с вами поделился
Неделя jsunderhood. Все ссылки, которыми я с вами поделился
http://blog.vjeux.com/2014/javascript/react-css-in-js-nationjs.html
http://bost.ocks.org/mike/algorithms/
http://cdn.mozilla.net/pdfjs/tracemonkey.pdf
http://confreaks.tv/videos/keeprubyweird14-opening-keynote
http://confreaks.tv/videos/rubyconf2014-the-social-coding-contract
http://eldar.djafarov.com/2013/11/reactjs-mixing-with-backbone/
http://ember.js/posts/animations-in-emberjs-with-liquidfire
http://frameworksdays.com/event/mk-listochkin-emberjs/participants
@listochkin
listochkin / README.md
Last active March 11, 2017 06:41
How Node Resolves Dependencies

How Node Resolves Dependencies

Read more about node_modules and how you can use them in official node/iojs docs:

If the module identifier passed to require() is not a native module, and does not begin with '/', '../', or './', then io.js starts at the parent directory of the current module, and adds /node_modules, and attempts to load the module from that location.

If it is not found there, then it moves to the parent directory, and so on, until the root of the file system is reached.

Here I show you how you can easily build a hierarchy of modules inside your project and use nested node_modules directories to manage dependencies within your application. This is a pretty good solution that doesn't require you to change NODE_PATH, use many git repositories or setting up a private registry.

@rtt
rtt / tinder-api-documentation.md
Last active April 20, 2024 17:01
Tinder API Documentation

Tinder API documentation

Note: this was written in April/May 2014 and the API may has definitely changed since. I have nothing to do with Tinder, nor its API, and I do not offer any support for anything you may build on top of this. Proceed with caution

http://rsty.org/

I've sniffed most of the Tinder API to see how it works. You can use this to create bots (etc) very trivially. Some example python bot code is here -> https://gist.github.com/rtt/5a2e0cfa638c938cca59 (horribly quick and dirty, you've been warned!)

@aurman
aurman / on-off-shield-example.groovy
Last active May 27, 2018 07:13
Device Handler Code for On/Off Shield (example)
/*
* On/Off Shield (example)
*
* Author: urman
* Date: 2013-03-14
* Revision: 2014-07-10
* Capabilities:
* Switch
* Custom Attributes:
* greeting
@listochkin
listochkin / javascript-static-analysis-tools.md
Created August 16, 2013 13:52
JavaScript Static Analysis Tools

JavaScript Static Analysis Tools

Most people are familiar with these three tools:

  1. [JSHint][1]
  2. [JSLint][2]
  3. [Google Closure Linter][3]

The first one is more popular among developers because it is style-agnostic. The other two enforce rules of [Crockford Style][4] and [Google Code Style][5] respectively.

@robmiller
robmiller / .gitconfig
Created July 17, 2013 07:52
Some useful Git aliases that I use every day
#
# Working with branches
#
# Get the current branch name (not so useful in itself, but used in
# other aliases)
branch-name = "!git rev-parse --abbrev-ref HEAD"
# Push the current branch to the remote "origin", and set it to track
# the upstream branch
publish = "!git push -u origin $(git branch-name)"
@listochkin
listochkin / 0 Private members in JavaScript.md
Created December 19, 2012 11:04
Private members in JavaScript

Private members in JavaScript