Skip to content

Instantly share code, notes, and snippets.

@weshardee
weshardee / mkmod
Created August 22, 2014 19:56 — forked from anthonyLukes/mkmod
ASSETS_DIR="./src/assets/scss/"
if [ -z "$5" ]
then
SASS_DIR="modules/";
else
SASS_DIR=$5/;
fi
@weshardee
weshardee / .scss-lint.yml
Last active August 29, 2015 14:10
My SCSS lint preferences
# Docs @ https://github.com/causes/scss-lint/blob/master/lib/scss_lint/linter/README.md
linters:
BorderZero:
enabled: false # nerdery - no existing standard for 'none' or '0'
CapitalizationInSelector:
enabled: false # nerdery - capitalization in camelCase is possible
ColorKeyword:
@weshardee
weshardee / serve.js
Created December 10, 2014 22:05
grunt task partial for starting a watch task and server in a build folder
/*jshint node:true, laxbreak:true */
'use strict';
module.exports = function(grunt) {
grunt.config.merge({
browserSync: {
bsFiles: {
src: '<%= env.DIR_DEST %>/**/*'
},
options: {
@weshardee
weshardee / icons
Last active August 29, 2015 14:21
icon meta tags
<html>
<head>
<!-- ICONS -->
<link rel="apple-touch-icon" sizes="57x57" href="assets/media/images/apple-touch-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="assets/media/images/apple-touch-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="assets/media/images/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="assets/media/images/apple-touch-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="assets/media/images/apple-touch-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="assets/media/images/apple-touch-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="assets/media/images/apple-touch-icon-144x144.png">
// Flat planes (quads) with textures. A background image in a 2D game perhaps?
Shader "2D/Texture Only"
{
Properties
{
_MainTex ("Texture", 2D) = ""
}
SubShader
// Flat planes (quads) with textures that have transparency. For example UI elements and/or 2D sprites.
Shader "2D/Texture Only Alpha"
{
Properties
{
_MainTex ("Texture", 2D) = ""
}
Category
// Flat planes (quads) with textures that have transparency and need to be colored or faded. Combine with iTween animations for extremely smooth looking, fading UI elements! :)
Shader "2D/Texture Color Alpha"
{
Properties
{
_Color ("Color Tint", Color) = (1,1,1,1)
_MainTex ("Texture", 2D) = ""
}
// Flat planes (quads) with solid colors that can be faded. Great for placeholder elements or a full screen fade-to-grey quad behind your pause menu for that extra smooth feel.
Shader "2D/Color Only Alpha"
{
Properties
{
_Color ("Main Color", Color) = (1,1,1,1)
}
Category
@weshardee
weshardee / txt
Last active February 3, 2021 01:39
odin-sokol-macos-error
Undefined symbols for architecture x86_64:
"_MTLCreateSystemDefaultDevice", referenced from:
-[_sapp_macos_app_delegate applicationDidFinishLaunching:] in sokol_app.a(sokol_app.o)
"_NSApp", referenced from:
_sapp_run in sokol_app.a(sokol_app.o)
(maybe you meant: __OBJC_LABEL_PROTOCOL_$_NSApplicationDelegate, __OBJC_PROTOCOL_$_NSApplicationDelegate )
"_OBJC_CLASS_$_MTKView", referenced from:
_OBJC_CLASS_$__sapp_macos_view in sokol_app.a(sokol_app.o)
"_OBJC_CLASS_$_MTLDepthStencilDescriptor", referenced from:
objc-class-ref in sokol_gfx.a(sokol_gfx.o)
@weshardee
weshardee / rocket.odin
Created March 20, 2021 18:29
testing odin language server
package test
import "core:math/linalg"
import "core:math"
import "core:fmt"
import "core:container"
import "src:lib"
import "src:lib/core"
import "src:lib/draw"