Skip to content

Instantly share code, notes, and snippets.

@aliustaoglu
aliustaoglu / launch.json
Created March 28, 2019 22:01
Debug Jest/Cucumber/Java with VSCode
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "java",
"name": "Debug Cucumber Tests",
"request": "launch",
@aliustaoglu
aliustaoglu / cities.json
Created April 26, 2019 22:31 — forked from Miserlou/cities.json
1000 Largest US Cities By Population With Geographic Coordinates, in JSON
[
{
"city": "New York",
"growth_from_2000_to_2013": "4.8%",
"latitude": 40.7127837,
"longitude": -74.0059413,
"population": "8405837",
"rank": "1",
"state": "New York"
},
var mediaJSON = { "categories" : [ { "name" : "Movies",
"videos" : [
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ],
"subtitle" : "By Blender Foundation",
"thumb" : "images/BigBuckBunny.jpg",
"title" : "Big Buck Bunny"
},
{ "description" : "The first Blender Open Movie from 2006",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ],
@aliustaoglu
aliustaoglu / Public.md
Created June 26, 2019 23:11
Public APIs

https://github.com/n0shake/Public-APIs

Public-APIs Twitter: @abgbm Build Status PRs Welcome

This is an attempt to categorise different APIs scoured from the web which make their resources available for consumption.

*Items marked with Open Source are open-source *Items marked with 💸 are trial based APIs

@aliustaoglu
aliustaoglu / docker-on-android.md
Created July 16, 2019 01:49 — forked from arno01/docker-on-android.md
Docker on Android

WORK IN PROGRESS

Docker on Android

Setup:

Samsung Galaxy Tab S5e SM-T720
Android Pie on Linux 4.9.112 (not rooted)
Termux
@aliustaoglu
aliustaoglu / Javascript ISO country code to country name conversion
Created September 2, 2019 07:17 — forked from maephisto/Javascript ISO country code to country name conversion
ISO 3166-1 alpha-2 country code to country name conversion with a simple Javascript implementation, an array and a function.
var isoCountries = {
'AF' : 'Afghanistan',
'AX' : 'Aland Islands',
'AL' : 'Albania',
'DZ' : 'Algeria',
'AS' : 'American Samoa',
'AD' : 'Andorra',
'AO' : 'Angola',
'AI' : 'Anguilla',
'AQ' : 'Antarctica',
@aliustaoglu
aliustaoglu / vue.config.js
Created April 5, 2020 06:10
Vue Webpack Sourcemap
module.exports = {
lintOnSave: false,
configureWebpack: config => {
if (process.env.NODE_ENV === 'development') {
config.devtool = 'eval-source-map';
config.output.devtoolModuleFilenameTemplate = info =>
info.resourcePath.match(/\.vue$/) && !info.identifier.match(/type=script/) // this is change ✨
? `webpack-generated:///${info.resourcePath}?${info.hash}`
: `webpack-yourCode:///${info.resourcePath}`;
@aliustaoglu
aliustaoglu / appify
Created May 7, 2020 08:13 — forked from mathiasbynens/appify
appify — create the simplest possible Mac app from a shell script
#!/bin/bash
if [ "$1" = "-h" -o "$1" = "--help" -o -z "$1" ]; then cat <<EOF
appify v3.0.1 for Mac OS X - http://mths.be/appify
Creates the simplest possible Mac app from a shell script.
Appify takes a shell script as its first argument:
`basename "$0"` my-script.sh
#!/bin/bash
# Generate the script that converts all wav files inside the folder to ogg
for f in *.wav
do
echo "ffmpeg -i '$f' -c:a libvorbis -qscale:a 3 '$f.ogg'"
done
@aliustaoglu
aliustaoglu / usStates
Created July 7, 2020 23:21
US States and Puerto Rico
var states = {"type":"Topology","arcs":[[[4378,49930],[116,-118],[47,-102],[216,-122],[118,-34],[102,-54],[-11,-46],[-116,20],[-154,24],[-190,135],[-121,61],[-37,182],[30,54]],[[2779,39838],[194,42],[104,43],[123,-2],[115,39],[66,61],[5,118],[91,70],[103,51],[84,-32],[60,-85],[-44,-94],[17,-120],[88,7],[176,7],[90,16],[111,-60],[144,21],[163,-22],[-24,-50],[-136,-24],[-161,-18],[-85,-4],[-131,35],[-90,-14],[-58,8],[-142,26],[-128,20],[-75,-9],[-19,-80],[-106,28],[-129,-35],[-112,15],[-88,-15],[-101,5],[-120,-4],[15,56]],[[1596,39407],[24,129],[97,41],[14,42],[-35,69],[27,45],[54,-2],[85,46],[22,-56],[-4,-53],[-16,-79],[104,22],[86,13],[99,12],[4,76],[-10,60],[-20,76],[44,62],[67,-9],[35,-51],[86,-83],[57,-6],[103,5],[153,22],[19,-47],[-154,-46],[-108,-16],[-124,-86],[-26,-52],[-114,-38],[-95,-32],[-127,-17],[-55,-33],[-81,-47],[-42,-44],[-68,-5],[-93,-29],[-35,18],[27,93]],[[1079,39473],[128,32],[129,9],[61,30],[20,124],[13,39],[59,-9],[39,-43],[-38,-81],[-5,-129],[-61,-25],[-61,-20],[-52,19],[-98,-17],[-120,