Skip to content

Instantly share code, notes, and snippets.

@Sapphiron532
Sapphiron532 / 0_reuse_code.js
Last active August 29, 2015 14:22
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
текст
@Sapphiron532
Sapphiron532 / declofnum.js
Created May 30, 2016 12:35 — forked from ivan1911/declofnum.js
Javascript склонение для числительных
function declOfNum(number, titles) {
cases = [2, 0, 1, 1, 1, 2];
return titles[ (number%100>4 && number%100<20)? 2 : cases[(number%10<5)?number%10:5] ];
}
use:
declOfNum(count, ['найдена', 'найдено', 'найдены']);
@Sapphiron532
Sapphiron532 / README.md
Created July 5, 2016 10:17 — forked from hofmannsven/README.md
My simply Git Cheatsheet
@Sapphiron532
Sapphiron532 / gist:804f929974963f62ed26d01446d0acb6
Created August 2, 2016 10:02 — forked from lttlrck/gist:9628955
rename git branch locally and remotely
git branch -m old_branch new_branch # Rename branch locally
git push origin :old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote
{
"name": "react-estudo",
"version": "1.0.0",
"description": "",
"main": "webpack.config.js",
"dependencies": {
"mappersmith": "^0.13.3",
"react": "^15.2.1",
"react-dom": "^15.2.1",
"react-remarkable": "^1.1.1"
@Sapphiron532
Sapphiron532 / stuff.js
Created May 20, 2017 09:52 — forked from Falconerd/stuff.js
webpack 2, react, redux
$ npm i -S react redux react-redux react-dom webpack@2* webpack-dev-server@2*
$ npm i -D babel-core babel-loader babel-preset-es2015 babel-preset-react
// webpack.config.js
module.exports = {
context: __dirname + '/src',
entry: {
app: './index.js'
},