Skip to content

Instantly share code, notes, and snippets.

View mach-kernel's full-sized avatar
😸
mrrrrow!

David Stancu mach-kernel

😸
mrrrrow!
View GitHub Profile
@mach-kernel
mach-kernel / snip.java
Last active August 29, 2015 14:23
it works!
OAuthServiceSync o = createOAuthService();
TokenResponse t = o.getToken(new DwollaTypedBytes(new Gson(),
new TokenRequest("client_id",
"client_secret", "authorization_code",
"redirect", "code")));
System.out.println("token: " + t.access_token);
System.out.println("refresh token: " + t.refresh_token);
TokenResponse r = o.refreshToken(new DwollaTypedBytes(new Gson(),
For those who want to self diagnose their up to 08/95 AC system for reading "Actual Values" and "Faults" the following procedure may help:
Actual Value Test
Turn temp wheel to white area
Ignition on
Press the R and L auto buttons
Within 20 seconds press the REST bitton for more than five seconds
The left display will show the component number(1-16)
The right display will show value, or Hi or Lo
Press the auto button to monitor the next component(there are 16)
➜ composer require dwolla/dwolla-php
Using version ~2.1 for dwolla/dwolla-php
./composer.json has been created
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Installing react/promise (v2.2.1)
Downloading: 100%
- Installing guzzlehttp/streams (3.0.0)
Downloading: 100%
#include <iostream>
#include <string>
#include <vector>
#include <boost/fusion/include/adapt_struct.hpp>
#include <boost/fusion/include/size.hpp>
#include <boost/preprocessor/repetition/repeat.hpp>
struct MyStruct
{
int x;
#include <iostream>
#include <string>
#include <vector>
#include <boost/fusion/include/adapt_struct.hpp>
#include <boost/fusion/include/size.hpp>
#include <boost/preprocessor/repetition/repeat.hpp>
struct MyStruct
{
int x;
/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
class Solution {
public:
def calc2(a, b)
yield(a,b)
end
# this works
p calc2(5, 6) {|a,b| a+b}
# this works
calc2(5, 6) do |a, b|
p a + b
http://fm.formularynavigator.com/jsonFiles/publish/11/47/providers.json ["38344"]
https://api.humana.com/v1/cms/providers-0.json ["44580"]
https://api.humana.com/v1/cms/providers-1.json ["44580"]
https://api.humana.com/v1/cms/providers-2.json ["44580"]
https://api.humana.com/v1/cms/providers-3.json ["44580"]
https://api.humana.com/v1/cms/providers-4.json ["44580"]
https://api.humana.com/v1/cms/providers-5.json ["44580"]
https://api.humana.com/v1/cms/providers-6.json ["44580"]
https://api.humana.com/v1/cms/providers-7.json ["44580"]
https://api.humana.com/v1/cms/providers-8.json ["44580"]
@mach-kernel
mach-kernel / keybase.md
Created January 24, 2017 03:39
Keybase identity verification, dstancu

Keybase proof

I hereby claim:

  • I am mach-kernel on github.
  • I am dstancu (https://keybase.io/dstancu) on keybase.
  • I have a public key whose fingerprint is 0A77 AE13 92E8 6AE6 75A3 FA57 540F FD17 0200 7D89

To claim this, I am signing this object:

# frozen_string_literal: true
# ez auto entities
# dstancu@nyu.edu
module API
module Entities
class Collection < Grape::Roar::Decorator
include Roar::JSON
include Roar::Hypermedia
class << self