Tested working on:
- Raspberry Pi 1 Model B+ (Using Docker hypriot/rpi-python) (debian/wheezy)
- Raspberry Pi 2 Model B (with virtualenv)
- Ubuntu Linux x64 (with virtualenv)
- Ubuntu Linux x64 (Using Docker)
- OS X Yosemite (with virtualenv)
| #!/usr/bin/env python | |
| """ | |
| Example Usage: | |
| $ ansible -i machine.py machinename -m ping | |
| """ | |
| import argparse | |
| import subprocess |
| /* Created by Chris Figueroa - @Kinifi | |
| * Create a script called AutoSave.cs | |
| */ | |
| using UnityEngine; | |
| using UnityEditor; | |
| using System.Collections; | |
| public class AutoSave : EditorWindow { |
Tested working on:
| FROM ubuntu:16.04 | |
| RUN apt update | |
| RUN apt install build-essential curl -y | |
| RUN apt install file -y | |
| RUN apt install asciinema -y | |
| RUN apt install unzip -y | |
| RUN apt install emacs24-nox -y | |
| RUN apt install vim -y | |
| RUN apt install nano -y |
| // for frank | |
| fn main() { | |
| let bar = [1,2,3]; | |
| let mut foo: [u8; 2] = [0, 0]; | |
| foo.clone_from_slice(&bar[0..2]); | |
| println!("{:?}", foo); | |
| println!("{:?}", bar); | |
| } |
| fn main() { | |
| let floats = vec![1.0, 2.0, 3.0]; | |
| let s: &[f64] = &floats[..]; | |
| let string = s.into_iter().map(ToString::to_string).collect::<Vec<_>>().join(","); | |
| println!("{}", string); | |
| } |
| fn main() { | |
| use std::str; | |
| use std::path::Path; | |
| println!("{:?}", "/tmp/bar/foo.txt".as_bytes()); | |
| //let buf = "/tmp/bar/foo.txt".as_bytes(); | |
| let buf = "C:/temp/foo/bar/foo.txt".as_bytes(); | |
| let buf_string = str::from_utf8(buf).unwrap(); | |
| //let path = Path::new("/tmp/foo/bar.txt"); |
| FROM postgres:latest | |
| MAINTAINER Joao Bolila | |
| ENV LC_ALL=C.UTF-8 | |
| RUN apt-get update | |
| RUN apt-get -y install vim silversearcher-ag jq | |
| RUN apt-get -y install build-essential git libsqlite3-dev libpq-dev | |
| RUN cd /tmp ; git clone git://github.com/rkitover/vimpager ; cd vimpager ; make install-deb |
| FROM ubuntu:16.04 | |
| MAINTAINER Jan-Erik Rediger | |
| RUN apt-get update && \ | |
| apt-get install -y --no-install-recommends \ | |
| curl ca-certificates vim-tiny nano gcc libc6-dev python && \ | |
| rm -rf /var/lib/apt/lists/* && \ | |
| mkdir -p /root/data/rust && \ | |
| mkdir -p /root/data/emsdk |