standinshd

A place where you can find interesting stuffs

standinshd

  • Home
  • About me
  • Open-Source Projects
    • Miku Bot
    • Electron Kasir
    • Node.js Master Barang
  • GitHub

 



Hello 2021.

 So, 2021 is here. I wanted to share my story.

I could say... No, no. I would say that this is actually a love story. Probably simp, tho. But here goes nothing.

This is literally my new year all about :

Yes. I fell in love with this girl... I guess?



Hopefully she'll be my new year ;)

I mean wot.

Thanks for reading this far!

Happy New Year 2021!






*shout out I LOVE YOU ESTIM

0
Share

14th of January 2020 is going to be one of most the historical moment in the world. Yes my dudes. Windows 7 is dead, just like what your thought based on reading this post's title. Microsoft decided to end their support for Windows 7, our most loved OS.

It's sad, yes. But windows 7 is old! So why not? Been 10 years since Windows 7's initial release, which is 22th of October 2009. SOOOO I think that's all. <3
1
Share

Back again with me!
For those who code in JS, do you make function like this?
function multiply(a, b) {
  return a * b;
};
Well, YOU SAK!
Let's talk about Arrow Function in ES6 JS so you can stop using that kind of ugly-yet-so-long syntax to make a single damn function.
First of all, as you can see from the function above it will multiply A with B right?
You can actually make it as simple as this :
multiply = (a, b) => {
  return a * b;
};
Is it not-so-simple to you? *sigh* fine. You can do this :
multiply = (a, b) => a * b;
What about if you did not provide one of those parameters? It will surely gives you multiply = (a, b = 5) => a * b; So when you don't know what to multiply by what, you can just run multiply(3); and still get 15!

That's all!

0
Share

Recently I've got a new domain, and that domain is https://isshort.tk.
If you've read my article about Using My URL Shortener API, you might notice that the domain is not short at all! So I decided to make a new one that is shorter!

This article is still the same; Showing y'all how to use my URL Shortener API.
Again, there are 2 ways to do so :

  1. Is to visit https://isshort.tk
  2. Is using the REST API from https://isshort.tk/new/
  3. Is to make your self a custom shortener link from https://isshort.tk/custom/

1. Visiting https://isshort.tk

Just visit it, baka baka.

2. Using https://isshort.tk/new/

In programmatic way, you make an HTTP request to https://isshort.tk/new/
Let's say we're using Node.js here, just make something like :
const request = require("request");
request({
    uri: "https://isshort.tk/new/google.com"
  },
  (err, res, body) => {
    console.log(body);
  });
Then you will get an output similiar to this :
{
  "long": "google.com",
  "short": "isshort.tk/oIkEZ"
}
Easy as fuck my dude.

3. Using https://isshort.tk/custom/

You should by now notice the custom route followed by comma prefix in the link I've given above don't you?
Now try to do this :
const request = require("request");
request({
    uri: "https://isshort.tk/custom/mysite.com,mysite"
  },
  (err, res, body) => {
    console.log(body);
  });
That's how you make a custom short link URL. The step to use it in programmatic way is the same as the previous one, the only difference is you will need to change /new/ into /custom/ and then add ,yourshortlink after your main link.
Your expected output would be :
{
  "long": "mysite.com",
  "short": "isshort.tk/mysite"
}

That's all, and stay cool!

0
Share

Deprecated! Please visit this link for more info. 

since my domain itself isn't short at all, this feature might best for you only if you want to easily open a very long URL.
So recently I made a URL shortener API, which you can access from this link.
In meantime, I also make it accessible through http request only (REST API, yes)
You can either open the link I've given above to make yourself a new URL, or if you want to use it in programmatic way, stay with me in this thread.

First of all, the endpoint is https://link.standinshd.site/new and to use it simply make something like : https://link.standinshd.site/new/https://blog.standinshd.site
When it succeeded, it will gives you a JSON response which you can scrap using your programming language you choose.
{ 
   "long":"https://blog.standinshd.site",
   "short":"link.standinshd.site/H42cq"
}

Custom Short URL

Let's say you want to short https://blog.standinshd.site into https://link.standinshd.site/myblog, you can use https://link.standinshd.site/custom to achieve that : https://link.standinshd.site/custom/https://blog.standinshd.site,myblog
Notice the comma ( , )! It is needed as a seperator between long URL and short URL.
Finally, you'll get this kind of response :
{ 
   "status":"ok",
   "long":"https://blog.standinshd.site",
   "short":"link.standinshd.site/myblog"
}

Keep in mind this API is still in development. I'm still working on it to make it even better and bug-less.

0
Share

Hi Folks!

Ever seen a website with awesome icons such as : ?

Have you ever wondering how to make such thing? If so then great, you're in the right place. Let's get into it.
First of all, create or open up your HTML file. Let's say it's called index.html and it might look similiar to this :
<!DOCTYPE html>
<html lang="en" dir="ltr">

<head>
  <meta charset="utf-8">
  <title>My Awesome Website</title>
</head>

<body>

</body>

</html>
Ok so before we proceed to the next step, we need to include FA's library.
To do so, just copy the code below and place it right before your </head> tag :
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css" />
</head>
So your new index.html file would looks like this :
<!DOCTYPE html>
<html lang="en" dir="ltr">

<head>
  <meta charset="utf-8">
  <title>My Awesome Website</title>
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css" />
</head>

<body>

</body>

</html>
Next, let's use the FA icons! You can achieve this by adding an <i> with an icon class you can get from Here

Using class

Let's say you wanted to use arrow icon : <i style="font-size:24px" class="fa fa-arrows"></i> Code above will gives you this :

Using unicode

After checking the link I've given above, you might wondering what are those &#fxxx; right?
Simply, you also type those codes and it will automatically converted into certain icons.
<i style="font-size:24px" class="fa">&#xf047;</i> will gives you this : 

That's all! Have a great times developing your websites.

0
Share

HASHIRE SORI YO
KAZE NO YOU NI
TSUKIMIHARA WO
PADORU PADORU

HASHIRE SORI YO
KAZE NO YOU NI
TSUKIMIHARA WO
PADORU PADORU

HASHIRE SORI YO
KAZE NO YOU NI
TSUKIMIHARA WO
PADORU PADORU

HASHIRE SORI YO
KAZE NO YOU NI
TSUKIMIHARA WO
PADORU PADORU

HASHIRE SORI YO
KAZE NO YOU NI
TSUKIMIHARA WO
PADORU PADORU

Christmas is almost here my fellow dudes.


0
Share
Older Posts Home

find me on


Powered by Blogger.

Categories

  • api
  • html
  • javascript
  • miscellaneous
  • rest-api
  • tech
  • website

Popular Posts

Labels

api html javascript miscellaneous rest-api tech website
Copyright © 2021 standinshd

Created By ThemeXpose | Copy Blogger Themes