Skip to content

Instantly share code, notes, and snippets.

@VoX
VoX / lens.json
Last active November 11, 2020 00:13
{
"version": "3.6.8",
"homepage": "https://github.com/lensapp/lens",
"url": "https://github.com/lensapp/lens/releases/download/v3.6.8/Lens-Setup-3.6.8.exe#/dl.7z",
"hash": "ef2cc1932c6fa94087cf6b3cfeddea7e41aca1fcd73477096842cdb1cb549bca",
"bin": "Lens.exe",
"license": "MIT",
"shortcuts": [
[
"Lens.exe",
<!--
In Vue, we use v-model for all form bindings, while
Knockout maintains separate binding types, such as
textInput, checked, and options. In some cases,
such as for an input of type "range", Knockout
simply doesn't have an equivalent two-way binding
helper and the more verbose value and valueUpdate
must be used.
-->
<div id="app">
@VoX
VoX / 100days.md
Last active April 5, 2016 00:43
100days ideas
  • codewars, including porting kata to c#
  • put.io/kickass command line
  • command line organization of shows/media
  • command line quick lookup, stack overflow, google, ect
  • work on my cloud
    • create local docker host/builder
    • dockerize HQ proxy
    • add HA proxy to compose
    • scale down scaleway
  • dockerize btsync and putdash apps and add to compose
So at a high level you game looks like this
Main
gameEngine = GameEngine()
renderEngine = RenderEngine()
baseSurface = Display.get_surface;
while 1
pygame.FpsLockThingIforgetTheName(60)
gameEngine.Step()
from distutils.core import setup
import py2exe, os
origIsSystemDLL = py2exe.build_exe.isSystemDLL
def isSystemDLL(pathname):
if os.path.basename(pathname).lower() in ("libfreetype-6.dll", "libogg-0.dll","sdl_ttf.dll"):
return 0
return origIsSystemDLL(pathname)
py2exe.build_exe.isSystemDLL = isSystemDLL
setup(windows = ["supercombat.py"],
var mongoose = require('mongoose');
mongoose.connect('mongodb://localhost/events');
var db = mongoose.connection;
db.on('error', console.error.bind(console, 'connection error:'));
db.once('open', function callback() {
console.log("connected to mongodb");
});
var eventSchema = mongoose.Schema({