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 () { | |
| var ns = document.createElement('noscript') | |
| var iframe = document.createElement('iframe') | |
| iframe.src = 'https://www.googletagmanager.com/ns.html?id=GTM-NDRZTBJD' | |
| iframe.height = '0' | |
| iframe.width = '0' | |
| iframe.style.display = 'none' | |
| iframe.style.visibility = 'hidden' | |
| ns.appendChild(iframe) | |
| document.body.insertBefore(ns, document.body.firstChild) |
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
| // custom-head.js (the file NEXT_PUBLIC_CUSTOMJS_HEAD points to) | |
| // --- Google Tag Manager --- | |
| (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; |
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 () { | |
| var ns = document.createElement('noscript') | |
| var iframe = document.createElement('iframe') | |
| iframe.src = 'https://www.googletagmanager.com/ns.html?id=GTM-NDRZTBJD' | |
| iframe.height = '0' | |
| iframe.width = '0' | |
| iframe.style.display = 'none' | |
| iframe.style.visibility = 'hidden' | |
| ns.appendChild(iframe) | |
| document.body.insertBefore(ns, document.body.firstChild) |
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-NDRZTBJD') |
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
| <div id="membercounterwrapper"> <span>EDITION #</span> | |
| <a href="#"><span class="odom">0</span></a> | |
| </div> |
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
| for(x=0; x<500; x++) { | |
| var title = "Ticket #" + x; | |
| var subject = "Test ticket #" + x; | |
| var body = "This is test ticket #" + x; | |
| $.ajax({ | |
| url: '/api/v2/tickets.json', | |
| contentType:'application/json', | |
| type: 'POST', | |
| data: JSON.stringify({"ticket": {"subject": subject , "comment": { "body": body }}}) | |
| }); |
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 objectSchema = Joi.object().keys({ | |
| username: Joi.string().alphanum().min(3).max(50).required(), | |
| email: Joi.string().email().required() | |
| }); |
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 stringSchema = Joi.string().min(3).max(30); | |
| Joi.validate(‘valid string’, stringSchema, | |
| function(error,val) { | |
| //do stuff | |
| }); |
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 http = require("http"); | |
| http.createServer(function (request, response) { | |
| // Send the HTTP header | |
| // HTTP Status: 200 : OK | |
| // Content Type: text/plain | |
| response.writeHead(200, {'Content-Type': 'text/plain'}); | |
| // Send the response body as "Hello World" |
NewerOlder