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
Show hidden characters
| { | |
| // Place your GLOBAL snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and | |
| // description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope | |
| // is left empty or omitted, the snippet gets applied to all languages. The prefix is what is | |
| // used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
| // $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. | |
| // Placeholders with the same ids are connected. | |
| // Example: | |
| // "Print to console": { | |
| // "scope": "javascript,typescript", |
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
| # coding: utf-8 | |
| # | |
| # Ref.: bgfx/examples/06-bump/bump.cpp | |
| # https://github.com/vaiorabbit/sdl2-bindings | |
| # | |
| require 'rmath3d/rmath3d' | |
| require 'sdl2' | |
| require_relative '../../bindings/ruby/bgfx.rb' | |
| require_relative './logo.rb' | |
| require_relative './utils.rb' |
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
| # coding: utf-8 | |
| # | |
| # Ref.: bgfx/examples/06-bump/bump.cpp | |
| # https://github.com/vaiorabbit/ruby-opengl/tree/master/sample | |
| # | |
| require 'rmath3d/rmath3d' | |
| require 'opengl' | |
| require 'glfw' | |
| require_relative '../../bindings/ruby/bgfx.rb' | |
| require_relative './utils.rb' |
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
| # | |
| # Ref.: bgfx/examples/06-bump/bump.cpp | |
| # https://github.com/vaiorabbit/ruby-opengl/tree/master/sample | |
| # | |
| require 'rmath3d/rmath3d' | |
| require 'opengl' | |
| require 'glfw' | |
| require_relative '../../bindings/ruby/bgfx.rb' | |
| require_relative './utils.rb' |
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
| # | |
| # Ref.: bgfx/examples/01-cubes/cubes.cpp | |
| # https://github.com/vaiorabbit/ruby-opengl/tree/master/sample | |
| # | |
| require 'rmath3d/rmath3d' | |
| require 'opengl' | |
| require 'glfw' | |
| require_relative '../../bindings/ruby/bgfx.rb' | |
| require_relative './logo.rb' |
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
| # | |
| # Ref.: bgfx/examples/00-helloworld/helloworld.cpp | |
| # https://github.com/vaiorabbit/ruby-opengl/tree/master/sample | |
| # | |
| require 'opengl' | |
| require 'glfw' | |
| require_relative '../bindings/ruby/bgfx.rb' | |
| require_relative './logo.rb' | |
| OpenGL.load_lib() |
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
| require 'ffi' | |
| # | |
| # Typedefs | |
| # | |
| FFI.typedef :uint16, :Bgfx_view_id_t # [HACK] Hard-coded. Seems we can't get information about this from current 'bgfx.idl'. | |
| FFI.typedef :int, :Bgfx_fatal_t |
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
| { | |
| // IntelliSense を使用して利用可能な属性を学べます。 | |
| // 既存の属性の説明をホバーして表示します。 | |
| // 詳細情報は次を確認してください: https://go.microsoft.com/fwlink/?linkid=830387 | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "name": "Debug Local File", | |
| "type": "Ruby", | |
| "request": "launch", |
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
| #! /usr/bin/env ruby | |
| # coding: utf-8 | |
| # Usage: | |
| # - Set environment variables 'TWITTER_CONSUMER_KEY', 'TWITTER_CONSUMER_SECRET', 'TWITTER_ACCESS_TOKEN' and 'TWITTER_ACCESS_TOKEN_SECRET' beforehand | |
| # - $ ruby destroy_like.rb [tweet id] | |
| # Ref.: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/post-favorites-destroy | |
| require 'json' |
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
| // Ref.: https://github.com/Microsoft/vscode-go/issues/219#issuecomment-449621513 | |
| { | |
| "version": "0.2.0", | |
| "configurations": [ | |
| /* Configuration for normal debugging | |
| { | |
| "name": "Launch", | |
| "type": "go", | |
| "request": "launch", | |
| "mode": "auto", |