Skip to content

Instantly share code, notes, and snippets.

View 2075's full-sized avatar

2075

View GitHub Profile
### Keybase proof
I hereby claim:
* I am 2075 on github.
* I am 75 (https://keybase.io/75) on keybase.
* I have a public key whose fingerprint is C22C FDC8 B105 15F1 D5FB 6699 3B73 34A9 69DC 758F
To claim this, I am signing this object:
trilateration
- (CGPoint)getCoordinateWith
beaconA:(CGPoint)a
beaconB:(CGPoint)b
beaconC:(CGPoint)c
distanceA:(CGFloat)dA
distanceB:(CGFloat)dB
@2075
2075 / why are you doing this to me?
Created June 2, 2016 22:30
code you find while debugging foreign code fragments
_isEventAllowed: function() {
// var allow = false,
var display = this.element.data('accordionDisplay');
if(display === undefined) {
return true;
}
// WTF, seriously?
// only if the last result is true we receive a true in return...

Keybase proof

I hereby claim:

  • I am 2075 on github.
  • I am 75 (https://keybase.io/75) on keybase.
  • I have a public key ASAhDtpFlmjsgKMSROjCMztTv1Gpb3q1p3yPn0ayAL8X6wo

To claim this, I am signing this object:

@IBAction func audioButtonPressed(_ sender: Any) {
if isRecording {
stopRecording()
delegate?.speechRecognitionComplete(query: query)
audioButton.backgroundColor = UIColor.red
isRecording = false
} else {
startRecording()
audioButton.backgroundColor = UIColor.green
isRecording = true
// npm install --save scrollreveal or install like you're used to doing it.
// It doesn't work well if there are multiple instances of ScrollReveal,
// so we have to create a module returning an instance:
// file ScrollReveal.js:
import ScrollReveal from 'scrollreveal'
export default ScrollReveal()
// Then in a component:
import React from 'react'
import sr from './ScrollReveal'
@2075
2075 / gist:2d7e9aaed8d8fec927e4192c7c3361d1
Created July 11, 2017 15:16
ltrace -f nvidia-docker-plugin
machine% ltrace -f nvidia-docker-plugin
[pid 15036] __libc_start_main(0x46bf60, 1, 0x7ffe311f64a8, 0x752bd0 <unfinished ...>
[pid 15036] pthread_once(0xd003a8, 0x728db0, 0x7ffe311f64b8, 0 <unfinished ...>
[pid 15036] malloc(104) = 0x2658010
[pid 15036] pthread_mutexattr_init(0x7ffe311f62d0, 0x2658010, 0x2658010, 0x7fb41111bae0) = 0
[pid 15036] pthread_mutexattr_settype(0x7ffe311f62d0, 1, 0x2658010, 0x7fb41111bae0) = 0
[pid 15036] pthread_mutex_init(0xd008c0, 0x7ffe311f62d0, 0x2658010, 0x7fb41111bae0) = 0
[pid 15036] pthread_mutexattr_destroy(0x7ffe311f62d0, 0x7ffe311f62d0, 0, 0) = 0
[pid 15036] pthread_mutexattr_init(0x7ffe311f62e0, 0x7ffe311f62d0, 0, 0) = 0
[pid 15036] pthread_mutexattr_settype(0x7ffe311f62e0, 1, 0, 0) = 0
@2075
2075 / create a minikube machine
Created April 3, 2019 20:17
create a minikube machine
# create a minikube machine
## install virtualbox
sudo apt-get install virtualbox virtualbox-qt virtualbox-dkms
## install docker ce
* https://docs.docker.com/install/linux/docker-ce/ubuntu/
* $ sudo apt-get remove docker docker-engine docker.io containerd runc
This post links my 3Box profile to my Github account! Web3 social profiles by 3Box.
✅ did:3:bafyreih3wq3nqaleiw73klc7hjlf5ndxmzoeri6ynzgps2qzfh5hffii7a ✅
Create your profile today to start building social connection and trust online at https://3Box.io/
@2075
2075 / gist:373c18d8e61bc3c279cd221cacec4639
Created September 14, 2020 17:44
cargo +nightly build --target=wasm32-unknown-unknown
cargo +nightly build --target=wasm32-unknown-unknown  
warning: output filename collision.
The bin target `wasm-test` in package `wasm-test v1.0.0 (/Users/2075/dev/zero/interstellar/wasm-test)` has the same output filename as the lib target `wasm_test` in package `wasm-test v1.0.0 (/Users/2075/dev/zero/interstellar/wasm-test)`.
Colliding filename is: /Users/2075/dev/zero/interstellar/wasm-test/target/wasm32-unknown-unknown/debug/deps/wasm_test.wasm
The output filenames should be unique.
Consider changing their names to be unique or compiling them separately.
This may become a hard error in the future; see <https://github.com/rust-lang/cargo/issues/6313>.
If this looks unexpected, it may be a bug in Cargo. Please file a bug report at
https://github.com/rust-lang/cargo/issues/ with as much information as you
can provide.