I hereby claim:
- I am novalagung on github.
- I am novalagung (https://keybase.io/novalagung) on keybase.
- I have a public key whose fingerprint is 6B3B A7C9 6566 2EF0 FFBF 566D 90F4 405F F0FE 1DD5
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
transpile es6 into es5 using babel cli.
first install required packages globally.
npm install -g @babel/core @babel/node @babel/preset-env @babel/cli
then use command below to perform transpilation.
package main | |
import ( | |
"fmt" | |
"io" | |
"os" | |
) | |
var path = "/Users/novalagung/Documents/temp/test.txt" |
#!/bin/bash | |
go test -coverprofile=coverage.out ./... | |
go tool cover -html=coverage.out |
// mengunakan library stdio, | |
// agar bisa memanfaatkan fungsi standar i/o (input output) | |
// salah duanya seperti fungsi scanf() dan printf() | |
#include "stdio.h" | |
// fungsi utama (main) menggunakan tipe data int, | |
// dikarenakan beberapa IDE secara "strict" meminta | |
// fungsi main harus memiliki nilai balik (return value). | |
int main() { |
package main | |
import ( | |
"bytes" | |
"crypto/tls" | |
"encoding/base64" | |
"encoding/xml" | |
"fmt" | |
"log" | |
"net/http" |
The key to make text view height follow it's content is by NOT SET HEIGHT CONSTRAINT and DISABLE THE SCROLL.
theTextView.isScrollEnabled = false
theTextView.text = "some text"
theTextView.sizeToFit()
But, if you already set the height constraint, then make it inactive
package com.sam016.vsflatomation.service.ble; | |
import java.util.HashMap; | |
import java.util.UUID; | |
public class AllGattCharacteristics { | |
private static HashMap<String, String> attributes = new HashMap(); | |
static { | |
attributes.put("00002a00-0000-1000-8000-00805f9b34fb", "Device Name"); |
# install development dependencies | |
yum groupinstall -y 'Development Tools' | |
yum install -y curl git | |
# install go toolchain | |
export GOROOT_BOOTSTRAP=/usr/local/go1.4 | |
curl -O https://storage.googleapis.com/golang/go1.4.3.linux-amd64.tar.gz | |
tar -zxf go1.4.3.linux-amd64.tar.gz && mv go ${GOROOT_BOOTSTRAP} | |
# obtain go source code |