Skip to content

Instantly share code, notes, and snippets.

@Sahasrara
Sahasrara / cs
Created October 29, 2019 02:40
Example Scroll View Code
/// <summary>
/// Controller for the interact menu canvas.
/// </summary>
public class InteractMenuCanvasController : MonoBehaviour
{
// Constants
private const string PanelName = "Panel";
private const string ScrollViewName = "Scroll View";
private const string ViewPortName = "Viewport";
private const string Content = "Content";
func main() {
//server.Serve()
startEtcd()
var test chan struct{}
<- test
}
21:21:41: Running steps for project NifSkope...
21:21:41: Configuration unchanged, skipping qmake step.
21:21:41: Starting: "C:\Qt\Tools\mingw530_32\bin\mingw32-make.exe" -j4
C:/Qt/Tools/mingw530_32/bin/mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory 'C:/Users/drefu/Desktop/Nifscope/build-NifSkope-Desktop_Qt_5_7_1_MinGQ_32bit-Debug'
g++ -c -pipe -fno-keep-inline-dllexport -isystem ../nifskope/lib/qhull/src -isystem ../nifskope/lib/gli/gli -isystem ../nifskope/lib/gli/external -isystem ../nifskope/lib/zlib -Og -g3 -std=gnu++1y -frtti -Wall -Wextra -fexceptions -mthreads -DUNICODE -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_URL_CAST_FROM_STRING -DQT_DISABLE_DEPRECATED_BEFORE=0x050300 -DNIFSKOPE_VERSION=\"2.0.dev7\" -DNIFSKOPE_REVISION=\"3a85ac5\" -DLZ4_STATIC -DXXH_PRIVATE_API -DEDIT_ON_ACTIVATE -DQT_QML_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I..\nifskope -I. -I..\nifskope\src -I..\nifskope\lib -I..\nifskope\lib\fsengine -I..\nifskope\lib\NvTr
@Sahasrara
Sahasrara / gist:7e0d243a4a99fb525c1b31a435782f72
Created April 18, 2018 04:47
Creation Kit Elevator Script
Scriptname MyFirstButtonScript extends ObjectReference
{My first Papyrus script}
bool Property up = true Auto
Event OnTranslationComplete()
if GetState() == "AtRest"
GoToState("Busy")
Else
GoToState("AtRest")
Find audio devices Mac:
ffmpeg -f avfoundation -list_devices true -i ""
Sending Mac with Soundflower installed Computer:
ffmpeg -f avfoundation -ac 2 -i :0 -f flac tcp://localhost:9999
Recieving unix box:
nc -lk localhost 9999 | ffplay -nodisp -
s.type=linux
target.platform=ubuntu64_gcc49
qmake.spec=linux-g++
qt.dir=/home/eric/Software/qt/5.7/gcc_64
python2.root=/usr/bin
python3.root=/home/eric/Software/anaconda3/envs/blue3/bin
swig.root=/home/eric/Software/anaconda3/envs/blue3/bin
QTDIR=/home/eric/Software/qt/5.7/gcc_64
QMAKESPEC=linux-g++
make.exec=make
- (void) viewWillAppear:(BOOL)animated {
// Update Layout so Constraints are satified
[self.view layoutIfNeeded];
self.deviceListViewController.view.frame = self.leftBarContainerView.bounds;
[self.leftBarContainerView addConstraint:[NSLayoutConstraint constraintWithItem:self.leftBarContainerView attribute:NSLayoutAttributeTop
relatedBy:NSLayoutRelationEqual
toItem:self.deviceListViewController.view