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
| $(document).ready -> | |
| class AppView extends Backbone.View | |
| events: | |
| "keypress #new-todo": "createOnEnter" | |
| createOnEnter: (event) -> | |
| return if event.keyCode != 13 | |
| Todos.create content: @input.val() | |
| $('#new-todo').val '' |
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
| # Before run the command rbenv install 2.0.0-rc make sure to run: | |
| sudo apt-get install openssl-dev | |
| #after that, p0 for ruby debug | |
| rbenv install 2.0.0-p0 |
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
| sudo apt-get install libdb++-dev | |
| git clone git://github.com/InvictusInnovations/ProtoShares.git | |
| cd ProtoShares/ | |
| qmake-qt4 -makefile protoshares-qt.pro | |
| make |
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 scooterCites = [{ | |
| 'lyric': "How much is the fish?", | |
| 'song': "How much is the fish" | |
| }, { | |
| 'lyric': "I am the horseman!", | |
| 'song': "One – Always hardcore" | |
| }, { | |
| 'lyric': "Döb döb döb da da döb döb döb!", |
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
| /*! | |
| * @preserve | |
| * jquery.scrolldepth.js | v0.8 | |
| * Copyright (c) 2015 Rob Flaherty (@robflaherty) | |
| * Licensed under the MIT and GPL licenses. | |
| */ | |
| ;(function ( $, window, document, undefined ) { | |
| "use strict"; |
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
| ga('create', 'UA-XXXX-XX', 'auto'); | |
| ga('send', 'pageview'); | |
| setTimeout("ga('send','event','Über 20 Sekunden','Besuchszeit länger als 20 Sekunden')",20000); // Länger als 20 Sekunden auf einer Seite |
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
| javascript:void function(){$("table").prepend("<textarea id='copyurls' cols='100' rows='20' style='height:auto; max-width: none'></textarea>"),$("table tbody tr").each(function(){$("textarea#copyurls").append($(this).data("url")+"\n")})}(); |
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
| $("h1,h2,h3,h4,h5,h6").each(function() { | |
| console.log(Array(parseInt($(this).prop("localName").substring(1,2))*2).join("-") + " " + $(this).prop("localName") + " " + $(this).text().trim()); | |
| }) |
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
| (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': | |
| new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], | |
| j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= | |
| 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); | |
| })(window,document,'script','dataLayer','GTM-XXXX'); |
OlderNewer