Skip to content

Instantly share code, notes, and snippets.

<?php
$url = 'https://api.brader.id/sm/wa/send/v1';
$ch = curl_init($url);
$jsonData = array(
'to' => '08xxxxxxxxxx',
'from' => '08xxxxxxxxxx',
'body' => 'Message that you want to send'
);
$header = array('Content-Type: application/json', 'ApiKey: Your API Key');
$jsonDataEncoded = json_encode($jsonData);

Keybase proof

I hereby claim:

  • I am sutanto1010 on github.
  • I am sutanto (https://keybase.io/sutanto) on keybase.
  • I have a public key ASAS6ZqipGgvGCUKDjpv4_6fSOkWb1MuCKyYADL6-nwzMgo

To claim this, I am signing this object:

@sutanto1010
sutanto1010 / TSQL-to-POCO
Last active January 17, 2019 12:42 — forked from joey-qc/TSQL-to-POCO
A simple TSQL script to quickly generate c# POCO classes from SQL Server tables and views. You may tweak the output as needed. Not all datatypes are represented but this should save a bunch of boilerplate coding. USAGE: Run this query against the database of your choice. The script will loop through tables, views and their respective columns. Re…
declare @tableName varchar(200)
declare @columnName varchar(200)
declare @nullable varchar(50)
declare @datatype varchar(50)
declare @maxlen int
declare @sType varchar(50)
declare @sProperty varchar(200)
/*
DECLARE table_cursor CURSOR FOR
@sutanto1010
sutanto1010 / gist:0d023f0cb902edc0e3c1
Created March 5, 2016 10:13 — forked from marty-wang/gist:5a71e9d0a6a2c6d6263c
Compile and deploy React Native Android app of Release version to device.
Disclaimer: The instructions are the collective efforts from a few places online.
Nothing here is my original. But I want to put them together in one place to save people from spending the same time as I did.
First off, bundle.
==================
1. cd to the project directory
2. Start the react-native packager if not started
3. Download the bundle to the asset folder:
curl "http://localhost:8081/index.android.bundle?platform=android" -o "android/app/src/main/assets/index.android.bundle"
using System;
using System.Linq;
namespace PluralsightDownloader
{
using System.IO;
using System.Net;
using System.Text.RegularExpressions;
using System.Threading;