Skip to content

Instantly share code, notes, and snippets.

View djjaron's full-sized avatar
👾
Leveling Up!

Jaron Ray Hinds djjaron

👾
Leveling Up!
View GitHub Profile
@kyptov
kyptov / UnityLoader.js
Last active January 15, 2022 13:01
without gzip and brotli decompressors
var UnityLoader = UnityLoader || {
Compression: {
identity: {
require: function() {
return {};
},
decompress: function(data) {
return data;
},
hasUnityMarker: function() {
@miracle2k
miracle2k / convert.js
Created June 15, 2018 04:45
Convert Ethereum private keys to EOS private keys (the "Fallback method" to access your EOS tokens).
// Extracted from https://github.com/eoscafe/eoskeyio
const ecc = require('eosjs-ecc');
const eth = require('ethereumjs-util');
let ethereumPrivateKey = 'FILL THIS IN';
if(eth.isValidPrivate(Buffer.from(ethereumPrivateKey, 'hex'))) {
let ethereumAddress = '0x' + eth.privateToAddress(Buffer.from(ethereumPrivateKey, 'hex')).toString('hex')
let ethereumPublicKey = eth.privateToPublic(Buffer.from(ethereumPrivateKey, 'hex')).toString('hex')
@bytemaster
bytemaster / hello.cpp
Created April 5, 2018 21:13
Hello World Contract for EOSIO
#include <eosiolib/eosio.hpp>
#include <eosiolib/print.hpp>
using namespace eosio;
struct hello : public contract {
using contract::contract;
void hi( name user ) {
print( “Hello, “, user );
}
@tsaqib
tsaqib / ideas.md
Last active July 8, 2024 07:53
Ideas that you can use for hackathons, competitions and research.

Ideas

I have collected and moderated these ideas from various public sources and put into one place so that problem solvers and solution developers may find inspirations. Because I wish to update it regularly, I have setup as a single page wiki. You may try these ideas on hackathons/competitions/research; some are quite intense problems and some are not. Many of the problems were prepared keeping Dhaka/Bangladesh in mind, but of course can be applied to just about any underdeveloped/developing and sometimes developed countries.

Categories:
  • Eradicate Extreme Poverty and Hunger
  • Education
  • Healthcare
  • Governance
@deltaepsilon
deltaepsilon / index.html
Created June 12, 2015 17:07
Firebase Chat Demo - With Auth
<html>
<head>
<title>DM4 Firebase Chat App</title>
</head>
<body ng-app="firebaseChat">
<div ng-controller="chatCtrl">
<form name="loginForm" ng-if="!authData">
<fieldset>
@FembotDBA
FembotDBA / Dynamically Update Statistics on All Databases on a server
Created September 16, 2014 22:15
Dynamically Updating Statistics on all Databases, With Sweet Potato Fries.
--statistics maintenance
--updates anything with more than 2% of changes
--or anything not updated within last 30 days
--This does full scan, because we have the time in our maintenance window
--This should be run after any index rebuilding as a statistics should get a update with a full scan
--Sidenote: If you have partitioned indexes and are running SQL 2012 or later, you should read up on how a index rebuild does not use fullscan
--And if you are using paritions, and switching partitions, you also may need to manually update your statistics
SET NOCOUNT ON;
@dbreunig
dbreunig / ReporterSaveFileDescription.md
Last active January 22, 2021 16:07
A description of the data written to the Reporter App Dropbox save folder.

#Reporter Save File Schema

##The Reporter Export File

Reporter saves to your Dropbox account with plaintext JSON files, one for each day. When a Report is entered in the app a file is created for that day if it does not exist. Otherwise, the report is appended to the existing file. The save folder is located in 'Dropbox/Apps/Reporter-App/'.

Reporter save files are named according to the following convention:

YYYY-MM-DD-reporter-export.json
@irazasyed
irazasyed / homebrew-permissions-issue.md
Last active June 14, 2024 17:01
Homebrew: Permissions Denied Issue Fix (OS X / macOS)

Homebrew Permissions Denied Issues Solution

sudo chown -R $(whoami) $(brew --prefix)/*