Skip to content

Instantly share code, notes, and snippets.

View matthieua's full-sized avatar

Matt Delac matthieua

View GitHub Profile
@matthieua
matthieua / parent.js
Created November 15, 2018 15:58 — forked from PavanKu/parent.js
this inside object method
var person = {
firstName: "John",
lastName : "Doe",
id : 5566,
fullName : function() {
return this.firstName + " " + this.lastName;
}
};
@matthieua
matthieua / this_global.js
Last active November 15, 2018 15:55 — forked from PavanKu/this_global.js
Global Execution context and value of this.
function go() {
console.log("Simple function call");
console.log(this === window);
}
go(); //prints true on console
console.log(this === window) //Prints true on console.
@matthieua
matthieua / Cucumber Plain Text Feature.tmLanguage
Created September 6, 2011 00:52 — forked from unixmonkey/Cucumber Plain Text Feature.tmLanguage
Cucumber Language definition file for TextMate; modified to work with Sublime Text 2
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>fileTypes</key>
<array>
<string>feature</string>
</array>
<key>firstLineMatch</key>
<string>기능|機能|功能|フィーチャ|خاصية|תכונה|Функціонал|Функционалност|Функционал|Особина|Могућност|Özellik|Właściwość|Tính năng|Savybė|Požiadavka|Požadavek|Osobina|Ominaisuus|Omadus|OH HAI|Mogućnost|Mogucnost|Jellemző|Fīča|Funzionalità|Funktionalität|Funkcionalnost|Funkcionalitāte|Funcționalitate|Functionaliteit|Functionalitate|Funcionalitat|Funcionalidade|Fonctionnalité|Fitur|Feature|Egenskap|Egenskab|Crikey|Característica|Arwedd(.*)</string>