Skip to content

Instantly share code, notes, and snippets.

View vsnchips's full-sized avatar

Dan Aston vsnchips

View GitHub Profile
@vsnchips
vsnchips / gist:a1128bb472cfc39211a413b8f2bc5828
Created May 19, 2021 03:58
VSCode Dynamic Command Definition through Internal Evaluation of Highlighted Text
/*This is Evil!
...And its very useful!
*/
/*
Using eval inside the VSCode Extension Development Host to dynamically do things and make new commands
*/
import * as vscode from 'vscode';
@vsnchips
vsnchips / !
Created October 18, 2018 03:15 — forked from dribnet/.block
PS4 MDDN 342 2018
let SessionLoad = 1
if &cp | set nocp | endif
let s:so_save = &so | let s:siso_save = &siso | set so=0 siso=0
let v:this_session=expand("<sfile>:p")
silent only
silent tabonly
cd ~/local/CC3/a4/procedural_map
if expand('%') == '' && !&modified && line('$') <= 1 && getline(1) == ''
let s:wipebuf = bufnr('%')
endif
@vsnchips
vsnchips / .block
Last active September 27, 2018 05:11 — forked from dribnet/.block
PS3 MDDN 342 2018
license: mit
height: 480
@vsnchips
vsnchips / .block
Created August 6, 2018 01:11 — forked from dribnet/.block
PS2 MDDN 342 2018
license: mit
@vsnchips
vsnchips / !
Created July 16, 2018 01:20 — forked from dribnet/.block
PS1 MDDN 342 2018
let SessionLoad = 1
if &cp | set nocp | endif
let s:so_save = &so | let s:siso_save = &siso | set so=0 siso=0
let v:this_session=expand("<sfile>:p")
silent only
cd /Dumprig/TheWorks/ToastMirror/proj/CC3/pj1
if expand('%') == '' && !&modified && line('$') <= 1 && getline(1) == ''
let s:wipebuf = bufnr('%')
endif
set shortmess=aoO
@vsnchips
vsnchips / .agent1.js.swp
Last active June 9, 2017 22:19 — forked from dribnet/.block
17.1.MDDN242 PS4
@vsnchips
vsnchips / history
Created May 16, 2017 02:49
FlickrScraper
import requests
import json
from pprint import prrint
fom pprint import pprint
from pprint import pprint
with open(APIout.json) as theJSON
with open(APIout.json) as theJSON:
data=json.load(theJSON)
data = json.load(theJSON)
data = json.load(APIout.json)
@vsnchips
vsnchips / history
Created May 16, 2017 02:49
FlickrScraper
import requests
import json
from pprint import prrint
fom pprint import pprint
from pprint import pprint
with open(APIout.json) as theJSON
with open(APIout.json) as theJSON:
data=json.load(theJSON)
data = json.load(theJSON)
data = json.load(APIout.json)
@vsnchips
vsnchips / history
Created May 16, 2017 02:49
FlickrScraper
import requests
import json
from pprint import prrint
fom pprint import pprint
from pprint import pprint
with open(APIout.json) as theJSON
with open(APIout.json) as theJSON:
data=json.load(theJSON)
data = json.load(theJSON)
data = json.load(APIout.json)
@vsnchips
vsnchips / history
Created May 16, 2017 02:49
FlickrScraper
import requests
import json
from pprint import prrint
fom pprint import pprint
from pprint import pprint
with open(APIout.json) as theJSON
with open(APIout.json) as theJSON:
data=json.load(theJSON)
data = json.load(theJSON)
data = json.load(APIout.json)