Skip to content

Instantly share code, notes, and snippets.

View ahmadrosid's full-sized avatar
🚀
On

ahmadrosid ahmadrosid

🚀
On
View GitHub Profile
{
"data": {
"kw": [
{
"id": "o1102",
"name": "Integrity First Realty - Mesa/Gilbert",
"type_id": 3,
"type_name": "Market Center",
"parent_id": "o179",
"roles": {
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
class RoutesCommand extends Command {
/**
* The console command name.
*
'{"data":{"0":{"searchQuery":"","form":{"lastMnsView":[],"ownershipType":"","hasNeighborhoods":null,"primaryPhone":"","updatedAt":[],"ownership":"","primaryAddress":"","customTagsFilterByEmpty":false,"stages":[],"systemTagsFilterByEmpty":false,"lastContactDate":[],"sources":[],"tags":[],"dateOfBirth":[],"ownersAndTeammates":[],"primaryEmail":"","createdAt":[],"company":[],"isConnected":""},"view":"list","headers":[{"fixed":"left","width":70,"Header":"","accessor":"profilePhoto","sortable":false,"isVisible":false,"resizable":false},{"fixed":"left","width":250,"Header":"Name","accessor":"firstName","sortable":false,"isVisible":true,"resizable":true},{"width":200,"Header":"Last Visited","accessor":"lastMnsView","sortable":true,"isVisible":false,"resizable":true},{"width":200,"Header":"Last Contacted","accessor":"lastContactDate","sortable":true,"isVisible":false,"resizable":true},{"width":250,"Header":"System Tags","accessor":"systemTags","sortable":false,"isVisible":false,"resizable":true},{"width":250,"Header"
@ahmadrosid
ahmadrosid / GIT.md
Last active September 15, 2019 06:12
How to rename git branch

How to rename git branch

Rename branch locally

git branch -m old_branch new_branch            

Delete the old branch

git push origin :old_branch

Install Apache Maven

curl -O https://www-eu.apache.org/dist/maven/maven-3/3.6.2/binaries/apache-maven-3.6.2-bin.zip
mv apache-maven-3.6.2-bin.zip /opt
unzip /opt/apache-maven-3.6.2-bin.zip
export PATH=/opt/apache-maven-3.6.2/bin:$PATH
{
"data": [
{
"office": {
"id": 68,
"name": "KW Leeds Central",
"org_id": "6152",
"region_org_id": "5968"
},
"user": {
{
"data": [
{
"office": {
"id": 68,
"name": "KW Leeds Central",
"org_id": "6152",
"region_org_id": "5968"
},
"user": {
@ahmadrosid
ahmadrosid / JSON API.md
Last active October 5, 2019 03:33
Json API adapter for lumen and laravel.

Installation

composer require league/fractal

Create folder app/Service and add file JsonApiAdapter.php and Transformer.php.

How to implement?

<?php
@ahmadrosid
ahmadrosid / Server.java
Created October 17, 2019 08:43
Java audio server
package com.datagram;
import java.io.ByteArrayInputStream;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import javax.sound.sampled.AudioFormat;
import javax.sound.sampled.AudioInputStream;
import javax.sound.sampled.AudioSystem;
import javax.sound.sampled.DataLine;
@ahmadrosid
ahmadrosid / SendText.java
Created October 17, 2019 12:12
Send udp data text android
package com.streamaudio;
import android.util.Log;
import java.io.IOException;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
import java.net.SocketException;