This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
void main() { | |
runApp( | |
Center( | |
child: Text( | |
'Hello, world!', | |
textDirection: TextDirection.ltr, | |
), | |
), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##### Set PATH ##### | |
# Homebrew | |
export PATH="$PATH:$HOME/homebrew/bin" | |
# My Bin | |
export PATH="$PATH:$HOME/bin" | |
#################### | |
##### Add preminalry scripts & dependencies ##### | |
# Add Homeshick | |
if [[ ! -d "$HOME/.homesick/repos/homeshick" ]]; then | |
git clone git://github.com/andsens/homeshick.git $HOME/.homesick/repos/homeshick |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const admin = require('firebase-admin'); | |
const auth = require('basic-auth') | |
const functions = require('firebase-functions'); | |
admin.initializeApp(functions.config().firebase); | |
exports.webhook = functions.https.onRequest((req, res) => { | |
// Check if api.ai provides a correct user/pass | |
const credentials = auth(req); | |
if (!credentials || credentials.name != 'username' || credentials.pass != 'password') { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bufio" | |
"fmt" | |
"io" | |
"net" | |
"net/http" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
#include<sstream> | |
#include<cstdio> | |
#include<cstdlib> | |
#include<cmath> | |
#include<cctype> | |
#include<cstring> | |
#include<vector> | |
#include<list> | |
#include<queue> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#This is a comment | |
FROM centos:centos6 | |
MAINTAINER Theeraphol Wattanavekin <[email protected]> | |
# Basic packages for work & troubleshooting | |
RUN yum update -y && yum install -y \ | |
git \ | |
vim \ | |
zsh \ | |
tar | |
RUN rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func doKickoff2(opts Option) { | |
scriptName := opts.Kickoff2.ScriptName | |
configFile := opts.Kickoff2.ConfigFile | |
contentByte, err := ioutil.ReadFile(opts.Kickoff2.ConfigFile) | |
if err != nil { | |
log.Error("%v", err) | |
return | |
} | |
var config TomlConfig | |
_, err = toml.Decode(string(contentByte), &config) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git checkout master | |
COOKBOOK=`git log -1 --pretty=%s | awk '{print $1}'` | |
VERSION=`git log -1 --pretty=%s | awk '{print $2}'` | |
# In case, Jenkins commit merge before build | |
if [ "$COOKBOOK" == "Merge" ] ; then | |
COOKBOOK=`git log -2 --pretty=%s | tail -1 | awk '{print $1}'` | |
VERSION=`git log -2 --pretty=%s | tail -1 | awk '{print $2}'` | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vagrant::Config.run do |config| | |
# debug default is :headless | |
config.vm.boot_mode = "gui" | |
# the .box file | |
config.vm.box = "afa-chef-server" | |
config.vm.box_url = "/V3/base_debian/with-apt.box" | |
# ssh config | |
config.ssh.private_key_path = "afa_private_key" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'https://rubygems.org' | |
group :test do | |
gem 'chefspec', '~> 3.4.0' | |
gem 'foodcritic', '~> 3.0.3' | |
gem 'strainer', '~> 3.0' | |
gem 'test-kitchen', '~> 1.2.1' | |
gem 'knife-spork', '~> 1.3.2' | |
gem 'hipchat', '~> 1.1.0' | |
gem 'guard', '~> 1.8.3' |
NewerOlder