Skip to content

Instantly share code, notes, and snippets.

View slimlime's full-sized avatar
😀
Hello, welcome to Weiber.

slimlime

😀
Hello, welcome to Weiber.
  • Australia
View GitHub Profile
@slimlime
slimlime / RecordAudio.swift
Created August 9, 2017 20:24 — forked from hotpaw2/RecordAudio.swift
Swift 3.0 Audio Recording class. Reads buffers of input samples from the microphone using the iOS RemoteIO Audio Unit API
//
// RecordAudio.swift
//
// This is a Swift 3.0 class
// that uses the iOS RemoteIO Audio Unit
// to record audio input samples,
// (should be instantiated as a singleton object.)
//
// Created by Ronald Nicholson on 10/21/16. Updated 2017Feb07
// Copyright © 2017 HotPaw Productions. All rights reserved.
@slimlime
slimlime / RecordAudio.swift
Created August 9, 2017 20:26 — forked from joelreymont/RecordAudio.swift
This is a quick&dirty example of a Swift 3.0 class that can read buffers of microphone input samples using iOS RemoteIO with the Audio Unit v3 API
//
// RecordAudio.swift
//
// This is a Swift 3.0 class
// that uses the iOS Audio Unit v3 API and RemoteIO Audio Unit
// to record audio input samples,
// (should be instantiated as a singleton object.)
//
// Created by Ronald Nicholson on 10/21/16.
// Copyright © 2016 HotPaw Productions. All rights reserved.
@slimlime
slimlime / packtpub_get_dl_links.js
Created October 16, 2017 00:36 — forked from juzim/packtpub_get_dl_links.js
Create wget commands for all claimed books on packtpub
@slimlime
slimlime / packtpub_get_your_library_books.js
Created October 16, 2017 01:00 — forked from tuxskar/packtpub_get_your_library_books.js
Create wget commands for all claimed books on packtpub
/*
== Adapted from the code over at https://gist.github.com/graymouser/a33fbb75f94f08af7e36 ==
Log into your account at packtpub.com and save the cookies with the "cookies.txt" Chrome extension or the "Export cookies" Firefox extension into the file cookies.txt.
Then open the console in your browsers dev tools and paste the following code.
You will get a list of wget commands that you can copy and paste as a whole into a terminal to download all books.
Example: wget --load-cookies=cookies.txt --content-disposition "https://packtpub.com//ebook_download/20217/mobi" -O "R Data Visualization Cookbook.mobi"
If you only want some filetypes, edit the "pattern" vaiable accordingly.
@slimlime
slimlime / vimeo-download.py
Created April 12, 2018 04:27 — forked from alexeygrigorev/vimeo-download.py
Downloading segmented video from vimeo
import requests
import base64
from tqdm import tqdm
master_json_url = 'https://178skyfiregce-a.akamaihd.net/exp=1474107106~acl=%2F142089577%2F%2A~hmac=0d9becc441fc5385462d53bf59cf019c0184690862f49b414e9a2f1c5bafbe0d/142089577/video/426274424,426274425,426274423,426274422/master.json?base64_init=1'
base_url = master_json_url[:master_json_url.rfind('/', 0, -26) + 1]
resp = requests.get(master_json_url)
content = resp.json()
@slimlime
slimlime / bootstrap-carousel.html
Created May 11, 2018 01:46 — forked from talmand/bootstrap-carousel.html
CSS changes to Bootstrap's Carousel so that the indicator dots are now thumbnails.
@slimlime
slimlime / salienHacks.js
Created June 21, 2018 23:59 — forked from coryshaw1/salienHacks.js
Salien Invincibility/AutoKill - Steam Summer Sale 2018
setInterval(function(){
if (!gGame || !gGame.m_State || !gGame.m_State.m_EnemyManager) return;
if (!gGame.m_State.m_EnemyManager.m_EnemyData) return;
gGame.m_State.m_EnemyManager.m_EnemyData.slime.base_health = gGame.m_State.m_EnemyManager.m_EnemyData.volvoian.base_health = gGame.m_State.m_EnemyManager.m_EnemyData.neomorph.base_health = 1;
gGame.m_State.m_EnemyManager.m_EnemyData.slime.base_damage = gGame.m_State.m_EnemyManager.m_EnemyData.volvoian.base_damage = gGame.m_State.m_EnemyManager.m_EnemyData.neomorph.base_damage = 0
if (!gGame.m_State.m_EnemyManager.m_rgEnemies) return;
@slimlime
slimlime / saliensHack.user.js
Created June 21, 2018 23:59 — forked from coryshaw1/saliensHack.user.js
Saliens Hack UserScript - AutoSelect Planet, Invincibility, InstaKill
// ==UserScript==
// @name Saliens Hack
// @description Saliens Hack for Steam Summer Sale 2018 Game - AutoSelect Planet, Invincibility, InstaKill
//
// @author Cory "mbsurfer" Shaw
// @namespace http://github.com/coryshaw1
// @downloadURL https://gist.github.com/coryshaw1/ed51d13baa8191f53f489b9de25cc868/raw/b4807713964a9b67e1b8d7837256845b078a51c6/saliensHack.user.js
//
// @license GPLv3 - http://www.gnu.org/licenses/gpl-3.0.txt
// @copyright Copyright (C) 2018, by Cory Shaw
setInterval(function(){
// select zone
if ( typeof gGame.m_State.m_Grid !== 'undefined' ) {
for ( var diffCounter = 3; diffCounter > 0; diffCounter-- ) { // hard, medium, easy
for ( var zoneCounter = 0; zoneCounter < 96; zoneCounter++ ) {
if ( !gGame.m_State.m_PlanetData.zones[zoneCounter].captured &&
gGame.m_State.m_PlanetData.zones[zoneCounter].difficulty === diffCounter ) {
gServer.JoinZone(
zoneCounter,
function ( results ) {