Skip to content

Instantly share code, notes, and snippets.

View chadjemmett's full-sized avatar

Chad Jemmett chadjemmett

View GitHub Profile
require 'gosu'
FONT_COLOR = 0xff_ffff00
class SpaceInvader < Gosu::Window
def initialize
super 640, 480
self.caption = "Space Invaders"
@text_message = "Hello world"
@message = Gosu::Font.new(20)
@x = 300
const stringCheck = (strBig, strSmall) => {
let count = 0
const bigStrLen = strBig.length
const smallStrLen = strSmall.length
let tempString = ""
for(let i=0; i<bigStrLen - smallStrLen + 1; i++ ) {
if (strBig[i] === strSmall[0]) {
tempString = strBig.slice(i, i + strSmall.length)
[info] POST /api/price
[debug] Processing with HomeworkWeb.PricesController.create/2
Parameters: %{"_json" => [%{"amount" => 500, "category" => "Sell", "type" => "P"}]}
Pipelines: [:api]
[info] Sent 400 in 10ms
[debug] ** (Phoenix.ActionClauseError) no function clause matching in HomeworkWeb.PricesController.create/2
The following arguments were given to HomeworkWeb.PricesController.create/2:
# 1
from openpyxl import Workbook
from openpyxl.styles import PatternFill
from openpyxl.utils import get_column_letter
from PIL import Image
im = Image.open('logo-small.png')
pix = im.load()
WIDTH = im.size[0]
HEIGHT = im.size[1]
<style>div.staff-info {margin: 10px 0px 0px 0px;}
div.colComm {
position: relative;
width: 100%;
min-height: 100px;
}
div.colComm > div {
width: 49.5%;
}
div.colComm > div:nth-of-type(1) {