-
Open a browser
# start an instance of firefox with selenium-webdriver driver = Selenium::WebDriver.for :firefox # :chrome -> chrome # :ie -> iexplore
- Go to a specified URL
#include <llvm/LLVMContext.h> | |
#include <llvm/Module.h> | |
#include <llvm/BasicBlock.h> | |
#include <llvm/CallingConv.h> | |
#include <llvm/Constants.h> | |
#include <llvm/Function.h> | |
#include <llvm/GlobalVariable.h> | |
#include <llvm/Instructions.h> | |
#include <llvm/PassManager.h> | |
#include <llvm/Analysis/Verifier.h> |
/* | |
A Tour of Go: page 44 | |
http://tour.golang.org/#44 | |
Exercise: Loops and Functions | |
As a simple way to play with functions and loops, implement the square root function using Newton's method. | |
In this case, Newton's method is to approximate Sqrt(x) by picking a starting point z and then repeating: z - (z*z - x) / (2 * z) |
on run argv | |
(* | |
Toggle an application from full screen to non full screen (or the reverse). | |
Parameters: | |
1: application name(ie, Chrome) | |
2: boolean (true/false). | |
When true ensure that the application is in full screen mode (if not, make it so) | |
When false ensure that the application is NOT in full screen mode (if not, make it so) | |
*) | |
set theapp to item 1 of argv |
package matrix | |
import ( | |
"github.com/gonum/blas" | |
) | |
var blasEngine blas.Float64 | |
type Float64 struct { | |
mat BlasMatrix |
#/usr/bin/env bash | |
set -e | |
set -x | |
apt-get update | |
apt-get upgrade | |
apt-get -y install build-essential curl git-core openssl libreadline6 libreadline6-dev \ | |
zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev \ |
更新: | 2024-11-06 |
---|---|
作者: | @voluntas |
バージョン: | 2024.13 |
url: | https://voluntas.github.io/ |
概要
#ローカルとリモートのブランチ名を変更する
以下、ブランチ名を hoge から foo に変更する例
git branch -m hoge foo
func openbrowser(url string) { | |
var err error | |
switch runtime.GOOS { | |
case "linux": | |
err = exec.Command("xdg-open", url).Start() | |
case "windows": | |
err = exec.Command("rundll32", "url.dll,FileProtocolHandler", url).Start() | |
case "darwin": | |
err = exec.Command("open", url).Start() |