Skip to content

Instantly share code, notes, and snippets.

View mishazawa's full-sized avatar
🎩
because white is boring

mishazawa

🎩
because white is boring
  • 0x0
  • 13:46 (UTC +09:00)
View GitHub Profile
#!/bin/bash
################################################################################
### OpenCV2 Installation Script ###
################################################################################
# Source code at https://github.com/arthurbeggs/scripts #
################################################################################
# #
# Feel free to copy and modify this file. Giving me credit for it is your #
# choice, but please keep references to other people's work, which I don't #
@stone3311
stone3311 / framebuffer_demo.c
Created July 4, 2016 13:25
This is a demo for the Nintendo DS framebuffer which uses the libnds library.
//---------------------------------------------------------------------------------
// Framebuffer demo for Nintendo DS, using the libnds library
//---------------------------------------------------------------------------------
#include <nds.h>
void framebufferDemoDrawPattern() {
int color = 0;
for (int pixelPosition = 0; pixelPosition < SCREEN_HEIGHT*SCREEN_WIDTH; pixelPosition++) {
VRAM_A[pixelPosition] = RGB15(color, color, color);
@mattes
mattes / og.txt
Last active May 7, 2022 01:53
Open Graph debugger
http://ogp.me/
https://moz.com/blog/meta-data-templates-123
https://search.google.com/structured-data/testing-tool
https://developers.facebook.com/tools/debug/og/object - https://developers.facebook.com/docs/reference/opengraph
https://cards-dev.twitter.com/validator - https://dev.twitter.com/cards/types
https://developers.pinterest.com/tools/url-debugger/ - https://developers.pinterest.com/docs/rich-pins/overview/
https://developer.linkedin.com/docs/share-on-linkedin
vec2 rotate(vec2 v, float a) {
float s = sin(a);
float c = cos(a);
mat2 m = mat2(c, s, -s, c);
return m * v;
}
@wavezhang
wavezhang / java_download.sh
Last active July 16, 2025 09:37
download java from oracle without login
wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/12.0.2+10/e482c34c86bd4bf8b56c0b35558996b9/jdk-12.0.2_linux-x64_bin.tar.gz
var R = require('ramda');
void 0; //to not bloat the output
var random = require('seed-random')(1337);
var data = [
{input: [0, 0], output: 0},
{input: [1, 0], output: 1},
{input: [0, 1], output: 1},
{input: [1, 1], output: 0},
];
var activation_sigmoid = x => 1 / (1 + Math.exp(-x));
@vsetka
vsetka / Cleanup.h
Last active May 27, 2024 15:00
Self deleting executable - Windows
#ifndef CLEANUP_H
#define CLEANUP_H
#include <windows.h>
#include <tchar.h>
#include <string>
#include <iostream>
#include <conio.h>
#endif
anonymous
anonymous / japanese.md
Created March 18, 2017 10:44
japanese.md