Skip to content

Instantly share code, notes, and snippets.

Avatar

Ben Koshy BKSpurgeon

View GitHub Profile
@BKSpurgeon
BKSpurgeon / byebug_cheat_sheet.md
Last active Dec 3, 2020
Quick Cheat Sheet for Byebug - The Most Used Commands
View byebug_cheat_sheet.md

Cheat Sheet of Basic Byebug Commands

  • step - jump inside the next line of code
  • eval - print out variables: e.g. eval x
  • set linetrace
  • set basename
  • quit or q!
  • display variable_name
  • where - call stack.
  • break 5 - add a break pointto line 5
@BKSpurgeon
BKSpurgeon / tekla-api-countour-plate.md
Created Aug 6, 2020
Tekla Open API - Countour plate creation example
View tekla-api-countour-plate.md
         Model teklaModel = new Model();

            if (teklaModel.GetConnectionStatus())
            {

                //Read in Width and length from CSV file
                // Put 20 plates in 1 row. Use a space of 300 between plates.
                // Name into the name field
                ContourPoint point = new ContourPoint(new Point(0, 4000, 0), null);
@BKSpurgeon
BKSpurgeon / elm-hover-code.md
Last active Jul 15, 2020
Very generic code on how to handle mouse enter - hovering events
View elm-hover-code.md

Very generic code on how to handle mouse enter - hovering events

-- Written by pd-andy

type alias Model =
  { hovering : Bool
  , showCard : Bool
  , ...
@BKSpurgeon
BKSpurgeon / drag and drop.md
Last active Jul 22, 2020
File - Drag and Drop Specs
View drag and drop.md
<-- Rails html view -->

<div id="joblesApp">
	
</div>

<div id="BensElmApp">	
</div>
@BKSpurgeon
BKSpurgeon / elm-drag-and-drop-with-sha.md
Last active Jun 15, 2020
An Elm drag and drop example - where the SHA1 of files are calculated
View elm-drag-and-drop-with-sha.md

https://ellie-app.com/98sGDxNXbpTa1

module Main exposing (..)
import Browser
import Bytes exposing (Bytes)
import Bytes.Encode as Encode
import File exposing (File)
import File.Select as Select
import Html exposing (..)
View dump-of-journalctl.txt
-- Logs begin at Fri 2020-03-13 09:53:25 AEDT, end at Wed 2020-06-10 13:39:01 AEST. --
Jun 10 13:17:09 koshy-System-Product-Name kernel: microcode: microcode updated early to revision 0xca, date = 2019-10-03
Jun 10 13:17:09 koshy-System-Product-Name kernel: Linux version 4.15.0-101-generic (buildd@lgw01-amd64-003) (gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)) #102-Ubuntu SMP Mon May 11 10:07:26 UTC 2020 (Ubuntu 4.15.0-101.102-generic 4.15.18)
Jun 10 13:17:09 koshy-System-Product-Name kernel: Command line: BOOT_IMAGE=/boot/vmlinuz-4.15.0-101-generic root=UUID=846702f2-4f66-4f8d-bca7-db69fa28063e ro elevator=deadline quiet splash vt.handoff=1
Jun 10 13:17:09 koshy-System-Product-Name kernel: KERNEL supported cpus:
Jun 10 13:17:09 koshy-System-Product-Name kernel: Intel GenuineIntel
Jun 10 13:17:09 koshy-System-Product-Name kernel: AMD AuthenticAMD
Jun 10 13:17:09 koshy-System-Product-Name kernel: Centaur CentaurHauls
Jun 10 13:17:09 koshy-System-Product-Name kernel: x86/fpu: Supporting XSAVE feature 0
View shrine-error.md

https://shrinerb.com/

require "shrine"
require "shrine/storage/s3"

puts '+'* 50
puts 'initializer'

=begin
@BKSpurgeon
BKSpurgeon / memberModifierInterface.cs
Created Mar 10, 2020
Interface - When separating UI stuff from the actual implementation
View memberModifierInterface.cs
```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DialogBeamProperties.CadInterfaces
{
You can’t perform that action at this time.