Skip to content

Instantly share code, notes, and snippets.

erdaldalkiran

Block or report user

Report or block erdaldalkiran

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View js-symbol-reflection
class MyMatcher {
constructor(value) {
this.value = value;
}
[Symbol.match](string) {
var index = string.indexOf(this.value);
if (index === -1) {
return null;
}
return [`${this.value} altered`];
@erdaldalkiran
erdaldalkiran / essence-of-functional-programming.js
Created Aug 27, 2016
Bahmutov - Essence of functional programming
View essence-of-functional-programming.js
//----------------first
// function timedPrint(character, N, interval) {
// var counter = 0;
// var intervalId = setInterval(function () {
// console.log(character);
// counter += 1;
// if (counter >= N) {
// clearInterval(intervalId);
// console.log('done printing', character, N, 'times');
// }
@erdaldalkiran
erdaldalkiran / so-test.js
Last active Mar 6, 2016
Unit Testing CycleJs Component with Mocha
View so-test.js
//TO RUN TEST:
// mocha --compilers js:babel-core/register FILE-LOCATION/so-test.js
import Rx from 'rx';
import {Observable} from 'rx';
import chai from 'chai';
const expect = chai.expect;
import CycleDOM from '@cycle/dom';
View gist:2771639
public string Ad
{
get
{
return this._Ad;
}
set
{
if (value != this._Ad)
{
You can’t perform that action at this time.