(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| // This is a VERY quick sketch as a proof of concept to see if we can start a car via SWCAN. This code won't work as-is, the data shown is dummy data. | |
| #include <mcp_can.h> | |
| #include <SPI.h> | |
| #include "SamNonDuePin.h" | |
| const int Red = 32; | |
| const int Yellow1 = X0; | |
| const int Yellow2 = 27; | |
| const int Green = 23; |
| #!/bin/bash | |
| SOURCE=/volume1 | |
| DEST=/volume2 | |
| APPDIR=\@appstore | |
| ASK=true | |
| while getopts ":y" opt; do | |
| case $opt in |
| #!/bin/sh | |
| # | |
| # cloudflare v4 ip updater for edgerouter | |
| # | |
| # this uses the v4 api which ddclient doesn't support directly. though v1 api of cloudflare is still active, we've disabled it (for SAML support), so v4 is mandatory. | |
| # updating the ip of a hostname is a 3 step process: | |
| # | |
| # 1. get the list of zones: | |
| # curl -X GET "https://api.cloudflare.com/client/v4/zones" -H 'X-Auth-Email: ***CLOUDFLARE-EMAIL***' -H 'X-Auth-Key: ***CLOUDFLARE-TOKEN***' -H 'Content-Type: application/json' | |
| # 2. get the DNS records in a zone (by the id returned above) |
| import android.app.Activity; | |
| import android.app.Dialog; | |
| import android.content.DialogInterface; | |
| import android.os.Bundle; | |
| import android.support.annotation.NonNull; | |
| import android.support.v4.app.DialogFragment; | |
| import android.support.v7.app.AlertDialog; | |
| import android.view.LayoutInflater; | |
| import android.view.View; | |
| import android.widget.Button; |
| <html> | |
| <head> | |
| <!-- include Synology SSO js --> | |
| <script src="http://ds:5000/webman/sso/synoSSO-1.0.0.js"></script> | |
| </head> | |
| <body> | |
| <script> | |
| /** Display login/logout button. |
| function Get-DiskFree | |
| { | |
| [CmdletBinding()] | |
| param | |
| ( | |
| [Parameter(Position=0, | |
| ValueFromPipeline=$true, | |
| ValueFromPipelineByPropertyName=$true)] | |
| [Alias('hostname')] | |
| [Alias('cn')] |
| /* | |
| * Copyright (C) 2014 skyfish.jy@gmail.com | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| import android.graphics.Color; | |
| import android.os.Bundle; | |
| import android.support.v4.widget.SwipeRefreshLayout; | |
| import android.support.v7.widget.DefaultItemAnimator; | |
| import android.support.v7.widget.LinearLayoutManager; | |
| import android.support.v7.widget.RecyclerView; | |
| import com.togethernetworks.basesdk.BaseActivity; | |
| import com.togethernetworks.gallery.samples.mortar.UiModule; |
| package com.pascalwelsch.utils; | |
| import android.support.annotation.Nullable; | |
| import android.support.v7.util.DiffUtil; | |
| import android.support.v7.widget.RecyclerView; | |
| import java.util.ArrayList; | |
| import java.util.Collections; | |
| import java.util.Comparator; | |
| import java.util.List; |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.