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
#ifdef C2NIM | |
# dynlib solouddll | |
# cdecl | |
# if defined(windows) | |
# define solouddll "soloud.dll" | |
# elif defined(macosx) | |
# define solouddll "libsoloud.dylib" | |
# else | |
# define solouddll "libsoloud.so" | |
# endif |
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
// Place your key bindings in this file to overwrite the defaults | |
[ | |
{ | |
"key": "f12", | |
"command": "workbench.action.tasks.runTask", | |
"args": "build" | |
}, | |
{ | |
"key": "f11", | |
"command": "workbench.action.tasks.runTask", |
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
# This is the configuration file for DOSBox 0.74-2. (Please use the latest version of DOSBox) | |
# Lines starting with a # are comment lines and are ignored by DOSBox. | |
# They are used to (briefly) document the effect of each option. | |
[sdl] | |
# fullscreen: Start dosbox directly in fullscreen. (Press ALT-Enter to go back) | |
# fulldouble: Use double buffering in fullscreen. It can reduce screen flickering, but it can also result in a slow DOSBox. | |
# fullresolution: What resolution to use for fullscreen: original, desktop or fixed size (e.g. 1024x768). | |
# Using your monitor's native resolution (desktop) with aspect=true might give the best results. | |
# If you end up with small window on a large screen, try an output different from surface. |
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
package main | |
import "fmt" | |
import "os" | |
import "io" | |
import "io/ioutil" | |
import "log" | |
// Copies file source to destination dest. | |
func CopyFile(source string, dest string) (err error) { |
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
pacman -Sy \ | |
mingw32/mingw-w64-i686-SDL2 \ | |
mingw32/mingw-w64-i686-SDL2_gfx \ | |
mingw32/mingw-w64-i686-SDL2_image \ | |
mingw32/mingw-w64-i686-SDL2_mixer \ | |
mingw32/mingw-w64-i686-SDL2_net \ | |
mingw32/mingw-w64-i686-SDL2_ttf \ | |
mingw32/mingw-w64-i686-smpeg2 \ | |
mingw64/mingw-w64-x86_64-SDL2 \ | |
mingw64/mingw-w64-x86_64-SDL2_gfx \ |
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
var init = { | |
foo: function(){ console.log('foo') }, | |
bar: function(){ console.log('bar') }, | |
baz: 3.14 | |
} | |
for (var key in init) { | |
if (!init.hasOwnProperty(key)) { | |
continue; | |
} |
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
http://www.dynamsoft.com/download/TWAIN/twainds.win32.installer.2.1.3.msi |
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
#git | |
alias _gc="git commit -a -m" | |
alias _gf="git pull" | |
alias _gp="git push" | |
alias _gpt="git push --tags" | |
alias _gs="git status" | |
alias _ga="git add" |
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
/* See http://godoc.org/bitbucket.org/jaybill/sawsij/framework/model#DbSetup for how to set up a DbSetup object */ | |
db := &model.DbSetup{} | |
.... | |
post := &Post{Name: "Jimmy", Title: "First Post", Slug: "firstpost"} | |
t := &model.Table{Db: db} | |
err := t.Insert(post) | |
// assuming no error, post.Id will now contain the auto-inserted Id. |
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
var f = "mailto:foo@bar"; | |
if (f.substring(0,"mailto".length) == "mailto") | |
{ | |
var email = f.substring( "mailto".length + 1, f.length); | |
console.log(email) | |
}; | |
NewerOlder