Skip to content

Instantly share code, notes, and snippets.

View Code0987's full-sized avatar
🖐️
Hi there!

Neeraj Code0987

🖐️
Hi there!
View GitHub Profile
POST https://quickpdf.climstech.com/api/template-to-pdf
Content-Type: application/json
{
"template": "payslip",
"values": {
"month_year": "2023-04",
"company_logo": "https://i.imgur.com/alOBAKC.png",
"company_name": "Company Name",
"company_address1": "Address",
for i in */.git; do ( echo $i; cd $i/..; git stash && git checkout master && git pull; ); done

Containers

List

docker container ls -a
docker container ls -aq
docker ps -aq --no-trunc
docker ps -aq -f status=exited
@Code0987
Code0987 / Dockerfile
Created July 31, 2019 06:26 — forked from ju2wheels/Dockerfile
Docker Dockerfile reference template
# Last updated: 08/24/2916
#
# Total instructions available: 18
#
# https://docs.docker.com/engine/reference/builder/
#
# You can use a .dockerignore file in the same context directory as
# your Dockerfile to ignore files in the context before sending them
# to the Docker daemon for building to speed up building.
@Code0987
Code0987 / AngularJS
Last active July 29, 2019 07:00 — forked from hofmannsven/README.md
My simple AngularJS Cheatsheet
Using AngularJS
===============
Website: [https://angularjs.org/](https://angularjs.org/)
Docs: [https://docs.angularjs.org/guide](https://docs.angularjs.org/guide)
Init with Module
-----------
@Code0987
Code0987 / gradle_android.gitlab_ci.yml
Last active March 7, 2018 15:54
gradle_android.gitlab_ci.yml
image: openjdk:8-jdk
stages:
- build
- test
- package
####################################################################################################
# BUILD
@Code0987
Code0987 / android_tricks_nav_bar_filler.md
Last active February 15, 2018 11:47
Navigation bar filler for fullscreen layouts, to avoid elements falling behind nav bar on devices with soft navigation bar.

In layout, align fab to be above empty layout.

   <android.support.constraint.ConstraintLayout
        android:id="@+id/nav_bar_filler"
        android:layout_width="0dp"
        android:layout_height="0dp"
        android:visibility="invisible"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintLeft_toLeftOf="parent"
/// <summary>
/// Formats the time to user safe string.
/// </summary>
/// <param name="ts">The ts.</param>
/// <param name="shorthand">if set to <c>true</c> [shorthand].</param>
/// <returns></returns>
public static string ToFriendlyString1(this TimeSpan ts, bool shorthand)
{
if(ts == TimeSpan.MaxValue || ts == TimeSpan.MinValue)
return "Sometime";