Skip to content

Instantly share code, notes, and snippets.

View Pencroff's full-sized avatar

Sergii Danilov Pencroff

View GitHub Profile
@piscisaureus
piscisaureus / pr.md
Created August 13, 2012 16:12
Checkout github pull requests locally

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:

@tbranyen
tbranyen / hbs.js
Created December 12, 2012 05:09
Very basic Ember.Handlebars compiling with RequireJS and the text plugin.
/* 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
@elerch
elerch / NodeFromCSharp.cs
Last active September 9, 2023 13:43
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…
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1
{
class Program
{

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

@CMCDragonkai
CMCDragonkai / angularjs_directive_attribute_explanation.md
Last active November 29, 2023 15:35
JS: AngularJS Directive Attribute Binding Explanation

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>
@staltz
staltz / introrx.md
Last active April 19, 2024 09:27
The introduction to Reactive Programming you've been missing
@ericelliott
ericelliott / essential-javascript-links.md
Last active March 28, 2024 23:01
Essential JavaScript Links
@yoavniran
yoavniran / ultimate-ut-cheat-sheet.md
Last active April 13, 2024 16:19
The Ultimate Unit Testing Cheat-sheet For Mocha, Chai, Sinon, and Jest
@boccob
boccob / sldes.md
Last active January 23, 2020 15:35
Slides of OdessaJS 2016

Николай Беличук: Карты и картографические сервисы
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