Here some useful links
Here you have a link for best practice for coding https://peter.bourgon.org/go-best-practices-2016/
https://golang.org/doc/code.html
Working with packages, useful links. http://thenewstack.io/understanding-golang-packages/
function isDictionaryEmpty(dict:Dictionary):Boolean | |
{ | |
for (var key:Object in dict) | |
{ | |
return false; | |
} | |
return true; | |
} |
#include <iostream> | |
#include <stdio.h> | |
#include <OpenGL/OpenGL.h> | |
#include <OpenGL/gl.h> | |
#include "SDL2/SDL.h" | |
using namespace std; | |
#define PROGRAM_NAME "Hello OpenGL" |
#include "SDL.h" | |
#include <OpenGLES/ES2/gl.h> | |
#include <OpenGLES/ES2/glext.h> | |
#include <memory> | |
using namespace std; | |
class Graphics | |
{ | |
private: |
#include "SDL.h" | |
#include <OpenGLES/ES2/gl.h> | |
#include <OpenGLES/ES2/glext.h> | |
#include <iostream> | |
#include <string> | |
#include <memory> | |
using namespace std; | |
GLuint programObject; | |
class Graphics |
var myCanvas = document.getElementById("canvas"); | |
var context = getWebGL(myCanvas); | |
function getWebGL (canvas) { | |
var glContexts = ["experimental-webgl", "webgl"]; | |
for (var i = glContexts.length - 1; i >= 0; i--) { | |
try { | |
gl = canvas.getContext(glContexts[i]); | |
gl.viewportWidth = canvas.width; |
Here some useful links
Here you have a link for best practice for coding https://peter.bourgon.org/go-best-practices-2016/
https://golang.org/doc/code.html
Working with packages, useful links. http://thenewstack.io/understanding-golang-packages/
Remove all docker containers
docker rm `docker ps -a -q`
Remove all docker images
docker rmi `docker images -a -q`
curl -X DELETE https://circleci.com/api/v1/project/:username/:project/build-cache?circle-token=:token
const spaceImport = require('contentful-import')
const client = require('contentful')
// Create a CDA client
const contentful = client.createClient({space: '<space-id>', accessToken: '<access-token>'})
// grab the delta sync
contentful.sync({nextSyncToken: '<delta-sync-token>'})
.then(response => {
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Net; | |
using System.Net.Sockets; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace GameServer | |
{ |