Skip to content

Instantly share code, notes, and snippets.

View FDiskas's full-sized avatar
🏠
Working from home

Vytenis FDiskas

🏠
Working from home
View GitHub Profile
import * as alt from 'alt';
import * as native from 'natives';
let NPCS = [
{ "model": "-1022961931", "x": 147.86373901367188, "y": -1041.9560546875, "z": 28.5, "rot": 340 }, //fleeca
{ "model": "1767447799", "x": 149.3274688720703, "y": -1042.4176025390625, "z": 28.5, "rot": 340 }, //fleeca
{ "model": "1767447799", "x": 313.74066162109375, "y": -280.8527526855469, "z": 53.20, "rot": 340 }, //fleeca
{ "model": "-1022961931", "x": 312.052734375, "y": -280.4439697265625, "z": 53.20, "rot": 340 }, //fleeca
{ "model": "1055701597", "x": 127.43736267089844, "y": -224.3340606689453, "z": 54.5545654296875, "rot": 90 }, //urban clothes shop
];
@DimitryDushkin
DimitryDushkin / configs.js
Created October 2, 2018 14:19
React Native 0.57 + Babel 7 + Typescript + Jest
// babel.config.js
module.exports = {
"presets": [
"module:metro-react-native-babel-preset",
],
"plugins": [
["module-resolver", {
"root": ["./src"],
"extensions": [".js", ".ts", ".tsx", ".ios.js", ".android.js"]
}],
@hereismari
hereismari / msi-gtx1060-ubuntu-18.04-deeplearning.md
Last active July 1, 2024 14:42
Setting up a MSI laptop with GPU (gtx1060), Installing Ubuntu 18.04, CUDA, CDNN, Pytorch and TensorFlow
@FDiskas
FDiskas / polyfills.js
Last active August 24, 2017 07:18
localStorage polyfill for jest #jest #localStorage
global.localStorage = {
getItem(key) {
return this[key];
},
setItem(key, value) {
this[key] = value;
},
removeItem(key) {
delete this[key];
},
@palicko
palicko / sticky-footer.css
Created December 14, 2016 20:40
Sticky footer with flexbox (works in IE11)
@gullitmiranda
gullitmiranda / docker_cheat_sheet.md
Last active May 11, 2016 02:35
Clean Docker images and containers cheat sheet.

Docker Cheat Sheet

NOTE: if you are using the docker without the http://azk.io installed, use docker instead of adocker.

Kill running containers

adocker kill $(adocker ps -q | tr '\r\n' ' ')
@smalot
smalot / PdfParser.php
Last active February 13, 2022 09:59
Use this static class to extract Text from Pdf files. It supports compressed and uncompressed Pdf (version 1.1 to 1.7) : tested It supports octal encoded (eg : \050) content, but not hexadecimal (eg : <005E>). In some cases, it works better than "pdftotext" binary tool.
<?php
/**
* @file
* Class PdfParser
*
* @author : Sebastien MALOT <[email protected]>
* @date : 2013-08-08
*
* References :
@JeffreyWay
JeffreyWay / gist:1525217
Created December 27, 2011 21:29
Instant Server for Current Directory
alias server='open http://localhost:8000 && python -m SimpleHTTPServer'