Skip to content

Instantly share code, notes, and snippets.

@DylanTackoor
DylanTackoor / cloudSettings
Created October 19, 2021 00:38
Visual Studio Code Settings Sync Gist
// Empty
@DylanTackoor
DylanTackoor / 🔴➡️🟢.gif
Last active April 10, 2021 18:18
🔴➡️🟢
🔴➡️🟢.gif
Y:\ROMs
├── Amstrad - CPC
├── Atari - 2600
| ├── 11 Sprite Demo (Piero Cavina) (PD).a26
| ├── 128-in-1 Junior Console (Chip 1) (PAL) [!].a26
| ├── 128-in-1 Junior Console (Chip 2) (PAL) [!].a26
| ├── 128-in-1 Junior Console (Chip 3) (PAL) [!].a26
| ├── 128-in-1 Junior Console (Chip 4) (PAL) [!].a26
| ├── 2 Pak Black - Challenge, Surfing (HES) (PAL) [!].a26
| ├── 2 Pak Special - Dolphin, Pigs 'N Wolf (1990) (HES) (PAL) [!].a26
#/bin/bash
wget https://gist.githubusercontent.com/DylanTackoor/95ec0b78f4b218a8b982335a96a16440/raw/4b3d9253c87e1dabe685074b095fa17fe52f92c8/smc_read.c
gcc -o smc_read smc_read.c -framework IOKit
./smc_read
/*
* smc_read.c: Written for Mac OS X 10.5. Compile as follows:
*
* gcc -Wall -o smc_read smc_read.c -framework IOKit
*/
#include <stdio.h>
#include <IOKit/IOKitLib.h>
typedef struct {
worlds["My world"] = "/Users/mynam/AppData/Roaming/.minecraft/saves/WithNether"
outputdir = "/Users/mynam/Desktop/Map/Signs"
def endportalFilter(poi):
if poi['id'] in ['End Portal Frame', 'minecraft:end_portal_frame']:
poi['icon'] = 'endportalframe.png'
return 'End portal'
!function(e){var t={};function i(o){if(t[o])return t[o].exports;var s=t[o]={i:o,l:!1,exports:{}};return e[o].call(s.exports,s,s.exports,i),s.l=!0,s.exports}i.m=e,i.c=t,i.d=function(e,t,o){i.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:o})},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/wp-content/themes/wmi-starter/dist/",i(i.s=5)}([function(e,t){e.exports=jQuery},function(e,t,i){var o,s,n;!function(r){"use strict";s=[i(0)],void 0===(n="function"==typeof(o=r)?o.apply(t,s):o)||(e.exports=n)}(function(e){"use strict";var t=window.Slick||{};(t=function(){var t=0;return function(i,o){var s,n=this;n.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:e(i),appendDots:e(i),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="bu
@DylanTackoor
DylanTackoor / Arrays: Left Rotation.js
Created March 26, 2019 19:20
HackerRank Solutions
const a = [1, 2, 3, 4, 5]
const d = 4
function rotLeft(array, shift) {
const newArr = []
for (let index = 0; index < array.length; index++) {
const newIndex = Math.abs(index - shift + array.length)
newArr[newIndex] = array[index]
}
@DylanTackoor
DylanTackoor / cloudSettings
Last active June 24, 2020 17:48
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-06-24T17:48:07.785Z","extensionVersion":"v3.4.3"}