Skip to content

Instantly share code, notes, and snippets.

View socmia's full-sized avatar
🌴
On vacation

Le Van Long socmia

🌴
On vacation
  • Viet Nam
  • 09:27 (UTC +07:00)
View GitHub Profile
@socmia
socmia / countries.json
Last active October 18, 2018 14:13 — forked from smitroshin/countries.json
Countries - name, dial_code, code
[
{
"name": "Afghanistan",
"dial_code": "+93",
"code": "AF"
},
{
"name": "Aland Islands",
"dial_code": "+358",
"code": "AX"
@socmia
socmia / Storing-Images-On-Github.md
Created March 11, 2019 03:45 — forked from joncardasis/Storing-Images-On-Github.md
Storing Images and Demos in your Repo

Storing Images and Demos in your Repo

In this quick walkthough you'll learn how to create a separate branch in your repo to house your screenshots and demo gifs for use in your master's readme.

How to

1. Clone a fresh copy of your repo

In order to prevent any loss of work it is best to clone the repo in a separate location to complete this task.

2. Create a new branch

Create a new branch in your repo by using git checkout --orphan assets

@socmia
socmia / gulp_sass_livereload.md
Created October 23, 2019 06:27 — forked from kellishouts/gulp_sass_livereload.md
Gulp + Sass + LiveReload 1.0

Gulp + Sass + LiveReload

This Gist goes over setting up a gulp workflow that will:

  1. watch for any sass changes, then compiles sass source into css
  2. watch for any changes in the public directory, and trigger live-reload
  3. serve static content in public/

@socmia
socmia / multiple_ssh_setting.md
Last active May 13, 2020 02:51 — forked from oLeVanLong/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
@socmia
socmia / shadow.xml
Created April 20, 2020 14:43 — forked from lecho/shadow.xml
Android shadow drawable xml.
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<!-- Drop Shadow Stack -->
<item>
<shape>
<padding
android:bottom="1dp"
android:left="1dp"
android:right="1dp"
@socmia
socmia / RSA.java
Created May 13, 2024 06:41 — forked from Anass-ABEA/RSA.java
RSA encryption/Decryption with a specific public/private Key.
import javax.crypto.Cipher;
import java.security.*;
import java.security.spec.PKCS8EncodedKeySpec;
import java.security.spec.X509EncodedKeySpec;
import java.util.Base64;
/**
* @author Anass AIT BEN EL ARBI
* <ul>
* <li>AES/CBC/NoPadding (128)</li>