Skip to content

Instantly share code, notes, and snippets.

@b21827335
b21827335 / index.css
Created December 6, 2021 09:34
WebGL - load obj - cube
@import url("https://webglfundamentals.org/webgl/resources/webgl-tutorials.css");
body {
margin: 0;
}
canvas {
width: 100vw;
height: 100vh;
display: block;
}
@greggman
greggman / index.css
Created October 17, 2020 16:56
Load Obj - Stack Overflow
body { margin: 0; }
canvas { width: 100vw; height: 100vh; display block; }
@mgmacri
mgmacri / README.md
Last active April 26, 2024 04:32
WebGL - load obj - cube
@codewithgun
codewithgun / laravel-local-pusher.md
Created April 22, 2021 15:40
Laravel web socket with local pusher and custom authentication

Laravel local websocket

Customized authentication will be used in this gist instead of default Auth facade provided by Laravel

Create project

composer create-project laravel-laravel your-project-name
cd your-project-name
@dun4n
dun4n / vcard.html
Last active April 26, 2024 04:32
#JavaScript vcard generator example
<!doctype html>
<html>
<head>
<script type="text/javascript" src="vcard2.js"></script>
</head>
<body>
<script type="text/javascript">
// With helper methods
var fooBar = vCard.create(vCard.Version.FOUR)
fooBar.addFormattedname("Mr Foo Bar")
@shuradrozd
shuradrozd / script.js
Created July 21, 2017 15:51
obj Stack with methods
function Stack() {
collection = [];
this.print = function() {
console.log(collection);
return this;
};
this.push = function(elem) {
@ianhenderson
ianhenderson / proxy.js
Last active April 26, 2024 04:31
Sample ES6 Proxy obj
var sampleProxy = new Proxy({}, {
get: function (target, key) {
console.log(`get key: ${key}`)
return target[key]
},
set: function (target, key, newValue) {
console.log(`set ${key} = ${newValue}`)
return target[key] = newValue
@kalpeshsingh
kalpeshsingh / pre-push
Last active April 26, 2024 04:31
A pre-push git hook that notify Amazon Chime group
#!/bin/sh
branch="$(git rev-parse --abbrev-ref HEAD)"
# get computer name to append in Chime message
username=$USER
# a branch name where you want to prevent git push. In this case, it's "master"
if [ "$branch" = "master" ]; then
echo "You can't commit directly to '"${branch}"' branch" # webstorm or intellij will show this as popup
@SheldonWangRJT
SheldonWangRJT / Convert .mov or .MP4 to .gif.md
Last active April 26, 2024 04:27
Convert Movie(.mov) file to Gif(.gif) file in one command line in Mac Terminal

This notes is written by Sheldon. You can find me with #iOSBySheldon in Github, Youtube, Facebook, etc.

Need

Convert .mov/.MP4 to .gif

Reason

As a developer, I feel better to upload a short video when I create the pull request to show other viewers what I did in this PR. I tried .mov format directly got after finishing recording screen using Quicktime, however, gif offers preview in most web pages, and has smaller file size.

This is not limited to developer, anyone has this need can use this method to convert the files.

@cjmaxik
cjmaxik / README.md
Last active April 26, 2024 04:26
Перевод валюты в рубли в Steam

Перевод валюты в рубли в Steam

Поддерживаются тенге, лиры, песо и гривны. Курс обновляется раз в 12 часов

Изменения

  • 0.9 - добавил гривны. Привет ПДФ
  • 0.8 - исправил обновление текущего курса валюты
  • 0.7 - исправил отображение баланса кошелька и изменил стиль оригинальной стоимости
  • 0.6 - добавил аргентинское песо, исправил ошибки
  • 0.5 - включил автообновление скрипта, исправил обновление курса валют
  • 0.4 - заменил источник курса (ближе к реальному), исправил перевод на страницах бандлов