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
import * as THREE from 'three' | |
const scene = new THREE.Scene(); | |
const camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000); | |
const renderer = new THREE.WebGLRenderer(); | |
renderer.setSize(window.innerWidth, window.innerHeight); | |
document.body.appendChild(renderer.domElement); | |
const geometry = new THREE.BoxGeometry(1, 1, 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
import cloneDeep from 'lodash.clonedeep'; | |
import * as shortId from 'shortid'; | |
export abstract class AbstractStore<T> { | |
private entities: Map<string, T> = new Map(); | |
create(data: T): T { | |
const entity = cloneDeep(data); | |
entity.id = shortId.generate(); | |
this.entities.set(entity.id, entity); |
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
console.log('Loading function'); | |
const doc = require('dynamodb-doc'); | |
const dynamo = new doc.DynamoDB(); | |
/** | |
* Demonstrates a simple HTTP endpoint using API Gateway. You have full | |
* access to the request and response payload, including headers and |
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
#!/bin/bash | |
set -e | |
sudo curl -L https://github.com/docker/compose/releases/download/1.16.1/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose | |
sudo chmod +x /usr/local/bin/docker-compose | |
sudo docker-compose --version |
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
#!/bin/bash | |
# author @ybouhjira | |
set -e | |
wget https://get.docker.com | |
mv index.html docker.sh | |
chmod +x docker.sh | |
./docker.sh | |
sudo docker -v |
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
▶ java -jar selenium-server-standalone-3.0.1.jar | |
16:53:31.518 INFO - Selenium build info: version: '3.0.1', revision: '1969d75' | |
16:53:31.519 INFO - Launching a standalone Selenium Server | |
2017-08-20 16:53:31.537:INFO::main: Logging initialized @248ms | |
16:53:31.591 INFO - Driver provider org.openqa.selenium.ie.InternetExplorerDriver registration is skipped: | |
registration capabilities Capabilities [{ensureCleanSession=true, browserName=internet explorer, version=, platform=WINDOWS}] does not match the current platform LINUX | |
16:53:31.591 INFO - Driver provider org.openqa.selenium.edge.EdgeDriver registration is skipped: | |
registration capabilities Capabilities [{browserName=MicrosoftEdge, version=, platform=WINDOWS}] does not match the current platform LINUX | |
16:53:31.592 INFO - Driver class not found: com.opera.core.systems.OperaDriver | |
16:53:31.592 INFO - Driver provider com.opera.core.systems.OperaDriver registration is skipped: |
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
import $ from 'jquery'; | |
import {Foundation} from 'foundation-sites/js/foundation.core'; | |
import {OffCanvas} from 'foundation-sites/js/foundation.offcanvas'; | |
import {Reveal} from 'foundation-sites/js/foundation.reveal'; | |
Foundation.plugin(OffCanvas, 'OffCanvas'); | |
Foundation.plugin(Reveal, 'Reveal'); | |
Foundation.addToJquery($); |
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
const express = require('express'); | |
const cors = require('cors'); | |
const bodyParser = require('body-parser'); | |
const app = express(); | |
app.use(cors()); | |
app.use(bodyParser.json()); | |
const todos = []; |
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
<?php | |
namespace AppBundle\Command; | |
use Doctrine\Common\Annotations\AnnotationReader; | |
use Doctrine\ORM\EntityManager; | |
use Doctrine\ORM\Mapping\ClassMetadata; | |
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; | |
use Symfony\Component\Console\Input\InputArgument; | |
use Symfony\Component\Console\Input\InputInterface; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title> | |
</title> | |
</head> | |
<body> | |
<radiogroup data-show-when-checked="mydiv" data-enable-on="oui"> |
NewerOlder