This file contains hidden or 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
#!/bin/sh | |
# Copyright 2012 The Go Authors. All rights reserved. | |
# Use of this source code is governed by a BSD-style | |
# license that can be found in the LICENSE file. | |
# git gofmt pre-commit hook | |
# | |
# To use, store as .git/hooks/pre-commit inside your repository and make sure | |
# it has execute permissions. | |
# |
This file contains hidden or 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
export PS1='\[\033[40;1;32m\]\u\[\033[2;32m\]@\[\033[0m\]\[\033[40;32m\]\h \[\033[1;36m\]\w\[\033[0m\] \n\\$ ' | |
export ANDROID_HOME=~/Library/Android/sdk | |
export PATH=/usr/local/opt/ruby/bin:~/go/bin:~/flutter/bin:$ANDROID_HOME/platform-tools:/Applications/Android\ Studio.app/Contents/jre/jdk/Contents/Home/bin:/usr/local/sbin:$PATH | |
export PATH=~/.cargo/bin:$PATH | |
export PATH=~/bin:$PATH | |
function share_history { | |
history -a |
This file contains hidden or 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" | |
"github.com/hajimehoshi/ebiten" | |
"github.com/hajimehoshi/ebiten/audio" | |
"github.com/hajimehoshi/ebiten/audio/vorbis" | |
raudio "github.com/hajimehoshi/ebiten/examples/resources/audio" | |
"github.com/hajimehoshi/ebiten/ebitenutil" |
This file contains hidden or 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 regularTermination = errors.New("regular termination") | |
type game struct { | |
m *testing.M | |
code int | |
} | |
func (g *game) Update(*ebiten.Image) error { | |
g.code = g.m.Run() | |
return regularTermination |
This file contains hidden or 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 | |
type VertexIn struct { | |
Vertex vec2 | |
Tex vec2 | |
TexRegion vec4 | |
ColorScale vec4 | |
} | |
type VertexOut struct { |
This file contains hidden or 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
// SPDX-License-Identifier: Apache-2.0 | |
using Microsoft.Xna.Framework; | |
using Microsoft.Xna.Framework.Graphics; | |
using Microsoft.Xna.Framework.Input; | |
using System; | |
using System.IO; | |
using Go2DotNet.Example.Ebiten.AutoGen; |
This file contains hidden or 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 ( | |
"image" | |
"image/color" | |
"image/draw" | |
"image/png" | |
"os" | |
"strings" |
This file contains hidden or 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
import 'package:flutter/material.dart'; | |
void main() => runApp(MyApp()); | |
var x = 0; | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
x++; |
This file contains hidden or 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
<!DOCTYPE html> | |
<canvas id="canvas" width="512" height="512"></canvas> | |
<script> | |
window.addEventListener('load', () => { | |
const canvas = document.getElementById('canvas'); | |
const gl = canvas.getContext('webgl'); | |
gl.viewport(0, 0, 512, 512); | |
var i = 0; | |
let f = () => { | |
setTimeout(() => { |
This file contains hidden or 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
diff --git a/include/v8.h b/include/v8.h | |
index 3275d97c43..5d44b30a89 100644 | |
--- a/include/v8.h |