Skip to content

Instantly share code, notes, and snippets.

View grokify's full-sized avatar
👽
Going with it!

John Wang grokify

👽
Going with it!
View GitHub Profile
@grokify
grokify / the-2-second-guide-to-dzil.txt
Created October 21, 2011 19:32
The 2 Second Guide to dzil
The 2 Second Guide to dzil
Dist::Zilla is a full-featured program to release free software, including packaging and uploading to the CPAN.
For a basic distribution, it takes just 5 commands to package and upload to the CPAN, not including your own code and tests.
The following commands will get your library uploaded:
# cpan Dist::Zilla
$ dzil setup
@grokify
grokify / Module1.vb
Last active October 23, 2018 08:58
Using RingCentral .NET SDK with VB.NET for SMS and Presence Notifications
' VB.NET Demo using C# SDK 1.0.0 at:
' GitHub: https://github.com/ringcentral/ringcentral-csharp
' Nuget: https://www.nuget.org/packages/RingCentralSDK/
' Use by adding RingCentralSDK Nuget package
Imports RingCentral
Imports RingCentral.Http
Module Module1
@grokify
grokify / JDK_8u92_cacerts.txt
Last active June 4, 2016 20:38
Trusted CA Certs included with JDK 8u92
# /Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk/Contents/Home/jre/lib/security/cacerts
Keystore type: JKS
Keystore provider: SUN
Your keystore contains 101 entries
digicertassuredidrootca, Apr 16, 2008, trustedCertEntry,
Certificate fingerprint (SHA1): 05:63:B8:63:0D:62:D7:5A:BB:C8:AB:1E:4B:DF:B5:A8:99:B2:4D:43
comodorsaca, May 11, 2015, trustedCertEntry,
@grokify
grokify / README.md
Last active June 12, 2016 22:22 — forked from tylerlong/README.md
C# SDK 1.0.0

RingCentral C# SDK 1.0.0 has been released

This is the first major release of the C# SDK which is now available on Nuget. It contains a long list of bug fixes, improvements as well as some new features. A discussion of our Portable Class Library (PCL) support and improvements follows, while a list of bug fixes is available by viewing the GitHub closed issues list.

Improved Portable Class Library

Portable Class Libraries can help you to reduce the time and costs of developing and testing code. Use this project type to write and build portable .NET Framework assemblies, and then reference those assemblies from apps that target multiple platforms such as Windows, OS X, Xamarin.iOS and Xamarin.Android.

In earlier versions of the SDK, we had different SDK projects for different platforms. On some platforms, users even have to compile the code themselves. We turned to PCL (Portable Class Library) with th

{
"records" : [
{
"uri" : "https://platform.ringcentral.com/restapi/v1.0/account/1234567890/extension/1234567890/message-store/00000000001",
"id" : 111111111111,
"to" : [
{
"name" : "(650) 555-1212 (John Wang)"
}
],
@grokify
grokify / rc-blog_2015-02_launch-sample.php
Created August 15, 2016 05:07
RC Blog 2015-02 Launch Hackathon
<?php
require('vendor/autoload.php');
use RC\core\cache\MemoryCache;
use RC\core\ajax\Request;
use RC\RCSDK;
#Initialize the SDK and authenticate
$rcsdk = new RCSDK(
new MemoryCache(),
'4XpQOskjdfhhYTkeIuQ',
@grokify
grokify / blog-2015-10-call-recording.php
Created August 15, 2016 07:53
RC Blog 2015-10 Call Recording API
$callLogRecords = $platform->get('/account/~/extension/~/call-log', array(
'type' => 'Voice',
'withRecording' => 'True'
))->json()->records;
foreach ($callLogRecords as $callLogRecord) {
// Retrieve recording media
$apiResponse = $platform->get($callLogRecord->recording->contentUri);
'<a href=rcmobile://call?number=' || REPLACE({phone}, ' ') || '>' || {phone} || '</a>'
@grokify
grokify / WebSocket Note
Last active August 29, 2016 05:17
WebSocket Notes
require 'faye/websocket'
require 'eventmachine'
i = 0
EM.run {
ws = Faye::WebSocket::Client.new('ws://echo.websocket.org/')
ws.on :open do |event|
p [:open]
{
"records": [
{
"status": 200,
"body": {
"id": "000000001",
"name": "Avengers",
...
}
},