Skip to content

Instantly share code, notes, and snippets.

Avatar
🦊

soundyogi soundyogi

🦊
View GitHub Profile
View ue4precompileplugins.md

The solution I'm using is the following:

Compile the plugin using the command line:

"ENGINE_DIR\UE_4.22\Engine\Build\BatchFiles\RunUAT.bat" BuildPlugin -Plugin="PATH_TO_MY_PLUGIN\MyPlugin.uplugin" -Package="PATH_TO_BUILD_FOLDER" -TargetPlatforms=Win64 -Rocket -precompile

Obviously replace ENGINE_DIR, PATH_TO_MY_PLUGIN, MyPlugin, PATH_TO_BUILD_FOLDER

Note that you should either add -precompile to the argument (as above) or put bPrecompile=true into your build.cs files

View css shootout
Generations
The most important factor that differentiates CSS-in-JS libraries is how dynamic they are. By that we mean whether a CSS-in-JS library can use JavaScript variables in its templates, and — if so — to what scope of variables those templates have access to? Module scope? Component scope? Or maybe .render() method scope?
Below we define five generations of CSS-in-JS libraries based on their template dynamicity and whether they use inline styles or inject actual CSS; starting from generation one — for the most static libraries — and going all the way up to generation five. Although not strictly true, this also corresponds to how React styling libraries evolved over time.
1st Generation
First generation React styling libraries don't allow you to write styling in JavaScript and use any of JavaScript variables, instead, you have to use CSS pre-processors. The CSS source files are usually located in separate .*css files.
Notable example: css-modules
2nd Generation
@soundyogi
soundyogi / ipfs-server-setup.md
Created Apr 25, 2020 — forked from claus/ipfs-server-setup.md
Host Your Site Under Your Domain on IPFS
View ipfs-server-setup.md

Host Your Site Under Your Domain on IPFS

This is a step-by-step tutorial for hosting your website under your domain on IPFS, from zero, on a DigitalOcean Ubuntu 16.04.3 x64 Droplet (i am using the $10 variant with 2GB RAM).

Install IPFS

Log in as root.

First, make sure the system is up to date, and install tar and wget:

@soundyogi
soundyogi / clean.sh
Last active Jun 10, 2019 — forked from jdowning/ami-clean.sh
Script to clean up Ubuntu
View clean.sh
#!/bin/bash
function print_green {
echo -e "\e[32m${1}\e[0m"
}
print_green 'Start'
print_green 'Cleanup log files'
find /var/log -type f | while read f; do echo -ne '' > $f; done
View install_c9ide.sh
#!/bin/bash
sudo apt install build-essential checkinstall
sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev
sudo apt install python2.7
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
git clone https://github.com/c9/core.git c9sdk
@soundyogi
soundyogi / ContractSend.tsx
Last active Jan 13, 2019
First Try of a generalized Drizzle Based Transaction Component with Context.Consumer
View ContractSend.tsx
/* global web3 */
import React from 'react';
import { DrizzleContext } from "drizzle-react";
import { drizzleProviderFactory } from '../../Provider';
type IDrizzleContext = {
drizzle: object
drizzleState: object
initialized: boolean
@soundyogi
soundyogi / web3_resolver_ethereum_provider_2018.js
Last active Oct 30, 2018
avoid race conditions with web3 and be ready for new ethereum provider system ( provider.enable() ) 2nd. nov 2018
View web3_resolver_ethereum_provider_2018.js
/* global window */
// originally from: https://github.com/adrianmcli
// adapted by me
import Web3 from 'web3'
const fallback = 'wss://mainnet.infura.io/ws'
@soundyogi
soundyogi / install_ionic_compiler.sh
Created Sep 2, 2018 — forked from javimosch/install_ionic_compiler.sh
Cloud9 Free VM (2048mb Storage) + Android Cordova Ionic Compiler
View install_ionic_compiler.sh
#vm machine needs nodejs
#download sdk
wget http://dl.google.com/android/android-sdk_r24.2-linux.tgz
tar -xvf android-sdk_r24.2-linux.tgz
rm android-sdk_r24.2-linux.tgz
mv android-sdk-linux/ android
#install essential sdk components
~/workspace/android/tools/android update sdk -u --all --filter 2,4,168
#install enviroment dependencies
sudo apt-get install lib32stdc++6
@soundyogi
soundyogi / ngrxintro.md
Created Aug 4, 2018 — forked from btroncone/ngrxintro.md
A Comprehensive Introduction to @ngrx/store - Companion to Egghead.io Series
View ngrxintro.md

Comprehensive Introduction to @ngrx/store

By: @BTroncone

Also check out my lesson @ngrx/store in 10 minutes on egghead.io!

Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!

Table of Contents

View package.json
"scripts": {
"dev": "node .dev/webpack.dev.server.js",
"dev-prod": "node .dev/webpack.dev.server.js --production",
"build": "rimraf ./dist && webpack --config .dev/webpack.config.production.js --colors",
},
"devDependencies": {
"@babel/core": "7.0.0-beta.38",
"@babel/plugin-proposal-class-properties": "7.0.0-beta.38",
"@babel/plugin-proposal-decorators": "7.0.0-beta.38",
"@babel/plugin-transform-classes": "7.0.0-beta.38",