Skip to content

Instantly share code, notes, and snippets.

@scope2229
scope2229 / Dockerfile
Created May 5, 2022 18:55
basic devcontainer
# [Choice] Ruby version (use -bullseye variants on local arm64/Apple Silicon): 3, 3.1, 3.0, 2, 2.7, 2.6, 3-bullseye, 3.1-bullseye, 3.0-bullseye, 2-bullseye, 2.7-bullseye, 2.6-bullseye, 3-buster, 3.1-buster, 3.0-buster, 2-buster, 2.7-buster, 2.6-buster
ARG VARIANT=2-bullseye
FROM mcr.microsoft.com/vscode/devcontainers/ruby:0-${VARIANT}
# Install Rails
RUN gem install rails webdrivers
# Default value to allow debug server to serve content over GitHub Codespace's port forwarding service
# The value is a comma-separated list of allowed domains
ENV RAILS_DEVELOPMENT_HOSTS=".githubpreview.dev"
@scope2229
scope2229 / dev_env_setup.sh
Last active January 12, 2020 00:21
Make executable, create symbolic link to script in /usr/local/bin etc for global access. Used for rails applications running with and without docker. Can easily be used for any other development environment.
#!/bin/bash
###################################################################
###################################################################
## ##
## Development environment setup for Guake ##
## ##
## Creates tabs with DIR in project directory along with ##
## services to be run or stopped ##
## Displays a menu to select your environment ##

Keybase proof

I hereby claim:

  • I am scope2229 on github.
  • I am kaine (https://keybase.io/kaine) on keybase.
  • I have a public key ASCs1Va3AvlwtKPl5lfhto7Z8jHDW9f0EjR53RfhO6d_jAo

To claim this, I am signing this object:

Rectangle{
id: myPage
color: "#565656"
width: parent.width
height: parent.height
ScrollView{
Layout.fillWidth: true
Rectangle{
id: scrollView
Layout.fillWidth: true
#include "babynetwork.h"
BabyNetwork::BabyNetwork(const QString& parentUName, const QString& parentPWord ) :
mParentUName(parentUName),
mParentPWord(parentPWord)
{
}
# PostgreSQL. Versions 9.1 and up are supported.
#
# Install the pg driver:
# gem install pg
# On OS X with Homebrew:
# gem install pg -- --with-pg-config=/usr/local/bin/pg_config
# On OS X with MacPorts:
# gem install pg -- --with-pg-config=/opt/local/lib/postgresql84/bin/pg_config
# On Windows:
# gem install pg
const PORT = process.env.PORT || 3000
const express = require('express');
const app = express();
const path = require('path')
const expressStaticGzip = require("express-static-gzip");
const DIST_DIR = path.join(__dirname, "build")
app.use('/', expressStaticGzip(DIST_DIR, {
customCompressions: [{
encodingName: 'deflate',
launchTaiBomber(){
console.log("lanuchTaiBomber");
let launch = this.taiBombers.countActive();
this.startingX = Phaser.Math.Between(100, 700);
if(this.score >= 50){
if(launch == 0){
let delay = Phaser.Math.Between(3000, 7000);
console.log(delay + "Time delay");
console.log("lanuch is false now start emmiting enimes");
console.log("taiBomb" + this);
import phaser from 'phaser'
export class Lvl_1 extends phaser.Scene{
constructor(){
super('lvl_1')
this.score = 1;
this.playerHP = 0;
}
create(){
this.taiBombers = this.physics.add.group();
import phaser from 'phaser'
export class Lvl_1 extends phaser.Scene{
constructor(){
super('lvl_1')
this.score = 1;
this.playerHP = 0;
}
create(){
console.log('lvl_1');