Skip to content

Instantly share code, notes, and snippets.

keenz kindlychung

Block or report user

Report or block kindlychung

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View main.dart
import 'dart:ui';
import 'package:flutter/material.dart';
void main() {
class MyApp extends StatelessWidget {
// This widget is the root of your application.
kindlychung /
Created Jan 12, 2020 — forked from lolgesten/
futures::io::AsyncRead/AsyncWrite conversion to tokio::io::AsyncRead/AsyncWrite
use futures_io::{AsyncRead, AsyncWrite};
use std::fmt;
use std::io;
use std::pin::Pin;
use std::task::{Context, Poll};
use tokio::io::AsyncRead as TokioAsyncRead;
use tokio::io::AsyncWrite as TokioAsyncWrite;
pub trait Stream: AsyncRead + AsyncWrite + Unpin + Send + 'static {}
kindlychung /
Last active Jun 5, 2019 — forked from daniel-j-h/
default to on Ubuntu'ish
sudo update-alternatives --install "/usr/bin/ld" "ld" "/usr/bin/" 20
sudo update-alternatives --install "/usr/bin/ld" "ld" "/usr/bin/ld.bfd" 10
sudo update-alternatives --config ld
ld --version
GNU gold
export CPP=cpp-5 gcc-5 g++-5
env CXXFLAGS='-march=native -flto -fuse-linker-plugin' cmake .. -DCMAKE_BUILD_TYPE=Release
View mxnet_error.txt
In file included from src/io/./iter_batchloader.h:16:0,
from src/io/
src/io/././inst_vector.h:157:46: error: expected class-name before ‘{’ token
class TBlobContainer : public mshadow::TBlob {
src/io/././inst_vector.h:166:30: error: ‘TShape’ in namespace ‘mshadow’ does not name a type
void resize(const mshadow::TShape &shape, int type_flag) {
src/io/././inst_vector.h: In constructor ‘mxnet::io::TBlobContainer::TBlobContainer()’:
src/io/././inst_vector.h:160:21: error: expected class-name before ‘(’ token
extern crate quick_xml;
use quick_xml::reader::Reader;
use quick_xml::events::Event;
fn main() {
let xml = r#"<tag1 att1 = "test">
<tag2><!--Test comment-->text1_from_tag2</tag2>
kindlychung /
Last active Oct 30, 2017 — forked from jedisct1/
Tensorflow 1.1 with CUDA 8.0 for GCE on Ubuntu 17.04
echo "deb [arch=amd64] stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list
curl | sudo apt-key add -
cd /tmp # the next part is specific to your setup
# Get it here:
gsutil cp gs://tn-devel-ds/ubuntu/libcudnn5* .
ls libcudnn*.deb | sort | xargs sudo dpkg -i
sudo apt update
sudo apt install libopenblas-dev liblapack-dev python3-pip python3-pandas python3-venv python3-werkzeug
kindlychung /
Created Oct 25, 2017 — forked from anonymous/
How to build lmms on ubuntu 17.10
git clone
cd lmms/
git checkout master
mkdir build target
cd build
sudo apt install libasound2-dev
sudo apt install libsndio-dev
sudo apt install libsndio-dev
sudo apt-get install libfftw3-dev
sudo apt-get install libfltk1.3-dev
View Using Swift Package Manager with

Using Swift Package Manager with iOS

Step 1:

File > New > Project...

Step 2:

Create a Package.swift file in your root project directory, add dependencies, then run swift package fetch on the command line in the same directory. We’re not going to run swift build because it will just complain.

View exif.js
(function() {
var debug = false;
var root = this;
var EXIF = function(obj) {
if (obj instanceof EXIF) return obj;
if (!(this instanceof EXIF)) return new EXIF(obj);
this.EXIFwrapped = obj;
View userinfo.scala
case class User(name: String, age: Int)
object User {
implicit val userPrinter: InfoPrinter[User] = new InfoPrinter[User] {
override def toInfo(value: User) = s"[User] name: ${}, age: ${value.age}"
val userInfo = implicitly[InfoPrinter[User]].toInfo(User("Xiaohong", 24))
You can’t perform that action at this time.