window.innerWidth
window.innerHeight
window.pageXOffset
window.pageYOffset
document.documentElement.clientWidth
document.documentElement.clientHeight
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// extending the Array prototype | |
Array.prototype.clone = function clone() { | |
return this.slice(0); | |
}; | |
// example | |
var arr = [4,5]; | |
var copy = arr.slice(0); | |
// better (since we do not extend the prototype): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
speechSynthesis.getVoices().forEach(function(voice) { | |
utterance = new SpeechSynthesisUtterance('PENIS'); | |
utterance.voice = voice; | |
speechSynthesis.speak(utterance); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias p="cd /cygdrive/d/dev/projects/git/" | |
alias c="cd //chayns1/SlitteRessource" | |
alias api="cd //chayns1/SlitteRessource/API/" | |
alias winx='/cygdrive/c/Windows/explorer.exe /e,`cygpath -w $PWD`' | |
alias nw="mintty.exe -i /Cygwin-Terminal.ico - &" | |
alias s="/cygdrive/c/Program\ Files/Sublime\ Text\ 3/sublime_text.exe" | |
alias hi="hicat" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
using Newtonsoft.Json; | |
namespace dlitfass.Data | |
{ | |
public class FacebookController | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-webkit-appearance: none; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var cSharpDate = '/Date(1424259189000)/'; // if one has to handle with a C# Date String | |
var jsDate = new Date(parseInt(cSharpDate.substr(6))); | |
// will output: Wed Feb 18 2015 12:33:09 GMT+0100 (Mitteleuropäische Zeit) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private string _articlePrice; | |
public string ArticlePrice { | |
get | |
{ | |
return _articlePrice; | |
} | |
set | |
{ | |
Thread.CurrentThread.CurrentCulture = new CultureInfo("de"); | |
_articlePrice = String.Format("{0:C}", decimal.Parse(value)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Ignore Visual Studio temporary files, build results, and | |
## files generated by popular Visual Studio add-ons. | |
# User-specific files | |
*.suo | |
*.user | |
*.sln.docstates | |
# Build results |