Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@goropikari
goropikari / c++memo.md
Last active February 26, 2018 06:53
C++メモ

標準入力・出力

#include <iotream>
using namespace::std;
  
int main() {
    int a, b;
    cin >> a >> b;
    cout << a + b << std::endl;
    return 0;

Glade

ui = Builder(filename="foo.glade")

GtkButton

getproperty(widget, :label, String)
signal_connect(widget -> foo(widget), widget, "clicked")
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#include <stdio.h>


int calc(double x[], int len)
{
  for (int i = 0; i < len; i++) {
    x[i] = x[i] * 2;
 }
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

リモートのサーバーにworkerを配置する

addprocs(["goropikari@192.168.56.56"], dir="/home/goropikari", exename="/home/goropikari/.local/bin/julia", tunnel=true)
ssh_askpass: exec(/usr/lib/ssh/ssh-askpass): No such file or directory

と出たら x11-ssh-askpass 入れる

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.