Skip to content

Instantly share code, notes, and snippets.

Avatar

Sergey Daniloff Pencroff

View GitHub Profile
@boccob
boccob / sldes.md
Last active Jan 23, 2020
Slides of OdessaJS 2016
View sldes.md

Николай Беличук: Карты и картографические сервисы
http://belichuk.github.io/odessajs2016/

Артем Тритяк: Forward to the Past or data fetching in React.js
https://medium.com/@ArtyomTrityak/forward-to-the-past-or-data-fetching-in-react-js-9f4ccfa29c10#.b4lxxf9f5

Юрий Шевцов: Internet of things в офисе
https://docs.google.com/presentation/d/1nhCQQTHeKGXuMMGOyYXDS2z0J7xP6ee8xUGZ0EM22do/edit?usp=sharing

Вадим Макеев: Grid Layout

@yoavniran
yoavniran / ultimate-ut-cheat-sheet.md
Last active Dec 3, 2020
The Ultimate Unit Testing Cheat-sheet For Mocha, Chai, Sinon, and Jest
View ultimate-ut-cheat-sheet.md
View essential-javascript-links.md
@staltz
staltz / introrx.md
Last active Dec 6, 2020
The introduction to Reactive Programming you've been missing
View introrx.md
@CMCDragonkai
CMCDragonkai / angularjs_directive_attribute_explanation.md
Last active Nov 11, 2020
JS: AngularJS Directive Attribute Binding Explanation
View angularjs_directive_attribute_explanation.md

AngularJS Directive Attribute Binding Explanation

When using directives, you often need to pass parameters to the directive. This can be done in several ways. The first 3 can be used whether scope is true or false. This is still a WIP, so validate for yourself.

  1. Raw Attribute Strings

    <div my-directive="some string" another-param="another string"></div>
View adams-heroku-values.md

Make it real

Ideas are cheap. Make a prototype, sketch a CLI session, draw a wireframe. Discuss around concrete examples, not hand-waving abstractions. Don't say you did something, provide a URL that proves it.

Ship it

Nothing is real until it's being used by a real user. This doesn't mean you make a prototype in the morning and blog about it in the evening. It means you find one person you believe your product will help and try to get them to use it.

Do it with style

@elerch
elerch / NodeFromCSharp.cs
Last active Nov 19, 2020
Using C# to host and communicate with node.js This proof of concept launches node.exe as a separate process, redirecting stdin/stdout. It simply calculates 2+2, then sends a process.exit() call after 10 seconds so the (.Net) app can complete (the suppressOut just gets node to output "undefined" instead of the full return value of setTimeout). Da…
View NodeFromCSharp.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1
{
class Program
{
@tbranyen
tbranyen / hbs.js
Created Dec 12, 2012
Very basic Ember.Handlebars compiling with RequireJS and the text plugin.
View hbs.js
/* RequireJS Ember.Handlebars Plugin v0.1.0
* Copyright 2012, Tim Branyen (@tbranyen)
* hbs.js may be freely distributed under the MIT license.
*/
define(["ember", "text"], function(Ember) {
var hbs = {
version: "0.1.0",
// Invoked by the AMD builder, passed the path to resolve, the require
@piscisaureus
piscisaureus / pr.md
Created Aug 13, 2012
Checkout github pull requests locally
View pr.md

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

You can’t perform that action at this time.