This file contains 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
/** | |
* contactUs | |
*/ | |
import { Router } from 'meteor/lib-flow'; | |
if (Meteor.isServer) return; | |
/** | |
* Simple Test to check the title of contact us | |
*/ | |
describe('Contact Us', function () { |
This file contains 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
FROM node:4.6.1 | |
RUN npm install nodemon -g | |
ADD ./src ./src | |
ADD ./package.json ./package.json | |
ADD ./.babelrc ./.babelrc | |
ADD ./config ./config |
This file contains 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
if (!process.argv[2]) process.exit(); | |
const generateQuery = (iter) => { | |
if (iter === 0) { | |
return ` x { y { yAttribute } } `; | |
} else { | |
return ` x { y { ${generateQuery(iter - 1)} } }`; | |
} |
This file contains 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
package sum | |
// Ints returns sum of list integers. | |
func Ints(vs ...int) int { | |
return ints(vs) | |
} | |
func ints(vs []int) int { | |
if len(vs) == 0 { | |
return 0 |
This file contains 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
// create something which returns a boolean, telling me if all the objects in the array are valid | |
const x = [ | |
{ y: 10, z: 22 }, | |
{ y: 2, z: 15 }, | |
{ y: 3, z: 10 }, | |
{ y: 123123123, z: 100 }, | |
]; |
This file contains 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
package main | |
import ( | |
"fmt" | |
"runtime" | |
"github.com/go-gl/gl/v2.1/gl" | |
"github.com/go-gl/glfw/v3.2/glfw" | |
) |
This file contains 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
package main | |
import "fmt" | |
type coords struct { | |
x int | |
y int | |
} | |
type apple struct { |
This file contains 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
package main | |
import ( | |
"fmt" | |
"runtime" | |
"github.com/go-gl/gl/v2.1/gl" | |
"github.com/go-gl/glfw/v3.2/glfw" | |
) |
This file contains 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
if ('URLSearchParams' in window) { | |
var searchParams = new URLSearchParams(window.location.search); | |
searchParams.set("foo", "bar"); | |
var newRelativePathQuery = window.location.pathname + '?' + searchParams.toString(); | |
history.pushState(null, '', newRelativePathQuery); | |
} | |
for (let n of searchParams.entries()) { | |
console.log(n); | |
} |
This file contains 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
{ | |
// Use IntelliSense to learn about possible attributes. | |
// Hover to view descriptions of existing attributes. | |
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "node", | |
"request": "launch", | |
"name": "Launch Program", |