This is guide for how to get the game Star Trek TNG: A final unity working on a GNU/Linux system.
First download the game from myabandonware.com.
Unzip the file:
unzip Star-Trek-The-Next-Generation---A-Final-Unity_DOS_EN_ISO-Version.zip
| // 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks. | |
| // You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/) | |
| (() => { | |
| const SHOW_SIDES = false; // color sides of DOM nodes? | |
| const COLOR_SURFACE = true; // color tops of DOM nodes? | |
| const COLOR_RANDOM = false; // randomise color? | |
| const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com) | |
| const MAX_ROTATION = 180; // set to 360 to rotate all the way round | |
| const THICKNESS = 20; // thickness of layers | |
| const DISTANCE = 10000; // ¯\\_(ツ)_/¯ |
| import UploadAdapter from './upload_adapter'; | |
| function CustomUploadAdapterPlugin( editor ) { | |
| editor.plugins.get( 'FileRepository' ).createUploadAdapter = ( loader ) => { | |
| // Configure the URL to the upload script in your back-end here! | |
| return new UploadAdapter( loader, editor ); | |
| }; | |
| } | |
| import { Controller } from "stimulus" |
This is guide for how to get the game Star Trek TNG: A final unity working on a GNU/Linux system.
First download the game from myabandonware.com.
Unzip the file:
unzip Star-Trek-The-Next-Generation---A-Final-Unity_DOS_EN_ISO-Version.zip
| /* | |
| This snippet is esssentially the same as being in the Twitter longer tweets test, for tweetdeck. | |
| The Tweet length counter is fixed by tricking TweetDeck into counting up to 140 characters, twice, so you'll see 140 | |
| instead of 280 in the counter but going over 140 will give you another set of 140 charactrs. | |
| */ | |
| TD.services.TwitterClient.prototype.makeTwitterCall=function(b,e,f,g,c,d,h){c=c||function(){};d=d||function(){};b=this.request(b,{method:f,params:Object.assign(e,{weighted_character_count:!0}),processor:g,feedType:h});return b.addCallbacks(function(a){c(a.data)},function(a){d(a.req,"",a.msg,a.req.errors)}),b}; | |
| twttrTxt=Object.assign({},twttr.txt,{isInvalidTweet:function(){return!1},getTweetLength:function(x){return x=twttr.txt.getTweetLength.apply(this,arguments),x<140||x/140>2?x:x%140}}); |
| #include <FastLED.h> | |
| // fadeTowardColor example code. | |
| // | |
| // Sample code that includes a function for fading one RGB color toward a target RGB color | |
| // Also includes a function for fading a whole array of pixels toward a given color | |
| // | |
| // Both of these functions _modify_ the existing color, in place. | |
| // | |
| // All fades are done in RGB color space. |
| import "phoenix_html" | |
| import "bootstrap" | |
| import "jquery" | |
| import "toastr" | |
| // ... |
| #!/usr/bin/env perl | |
| # | |
| # Find unused CSS selectors by crawling a list of URLs | |
| # (--url, even more than one) and matching all elements in | |
| # a page to find out which selectors are never used across | |
| # all given URLs | |
| # | |
| # Usage: | |
| # ./find-unused-css-selectors.pl --css file.css --url http://some.url [--url http://some.other.url ...] | |
| # |
An introduction to curl using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
| class Avatar < ActiveRecord::Base | |
| attr_accessor :content_type, :original_filename, :image_data | |
| before_save :decode_base64_image | |
| has_attached_file :image, | |
| PAPERCLIP_CONFIG.merge( | |
| :styles => { | |
| :thumb => '32x32#', | |
| :medium => '64x64#', |