Skip to content

Instantly share code, notes, and snippets.

View nikzad-avasam's full-sized avatar
🐎
working hard

sam nikzad-avasam

🐎
working hard
View GitHub Profile
@nikzad-avasam
nikzad-avasam / replace video tag by your video tag
Created November 7, 2025 14:19
aparate responsive full video tag
<div style="position: relative; display: block; height: 0; padding: 0; padding-bottom: 56.25%;">
<iframe src="https://www.aparat.com/video/video/embed/videohash/[video-id]/vt/frame" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;" frameborder="0" scrolling="no" allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true">
</iframe>
</div>
@nikzad-avasam
nikzad-avasam / .conkyrc
Last active November 4, 2021 15:19
.conkyrc
# created by sam nikzad for archlinux and gnome desktop panel ... with conky-lua
background no
update_interval 1
cpu_avg_samples 2
net_avg_samples 2
temperature_unit celsius
double_buffer yes
no_buffers yes
@nikzad-avasam
nikzad-avasam / register.php
Last active March 10, 2020 12:35
login.php
<?php
echo 'this is login page';
?>
@nikzad-avasam
nikzad-avasam / JsonArrayRequestUtf8.JAVA
Last active April 27, 2024 17:45
Use this class instead JsonArrayRequest OR JsonObjectRequest in Volley Library for support UTF-8 Languages Like Persian ( FARSI )
/**
* Created by Sam Nikzad on 5/27/2016.
*/
public class JsonArrayRequestUtf8 extends JsonArrayRequest {
public JsonArrayRequestUtf8(String url, Response.Listener<JSONArray> listener, Response.ErrorListener errorListener) {
super(url, listener, errorListener);
}
@Override
protected Response<JSONArray> parseNetworkResponse(NetworkResponse response) {