This file contains hidden or 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
#!/bin/bash | |
for file in `find . -name '*.JPG'`; do | |
echo $file | |
date=`date -r $file "+%Y%m%d_%H%M%S"` | |
mv $file "${date}.JPG" | |
done |
This file contains hidden or 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
[Ll]ibrary/ | |
[Tt]emp/ | |
[Oo]bj/ | |
[Bb]uild/ | |
[Bb]uilds/ | |
[Ll]ogs/ | |
# Uncomment this line if you wish to ignore the asset store tools plugin | |
# [Aa]ssets/AssetStoreTools* |
This file contains hidden or 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
* text=auto | |
# Unity files | |
*.meta -text merge=unityyamlmerge diff | |
*.unity -text merge=unityyamlmerge diff | |
*.asset -text merge=unityyamlmerge diff | |
*.prefab -text merge=unityyamlmerge diff | |
*.mat -text merge=unityyamlmerge diff | |
*.anim -text merge=unityyamlmerge diff | |
*.controller -text merge=unityyamlmerge diff |
This file contains hidden or 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
PKG_CONFIG_LIBDIR=/usr/lib/arm-linux-gnueabihf/pkgconfig:/usr/share/pkgconfig \ | |
../qt-everywhere-src-5.12.3/configure \ | |
-platform linux-rpi3-g++ \ | |
-v \ | |
-opengl es2 -eglfs \ | |
-no-gtk \ | |
-opensource -confirm-license -release \ | |
-reduce-exports \ | |
-force-pkg-config \ | |
-nomake examples -no-compile-examples \ |
This file contains hidden or 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
{ | |
"description": "JISキーボードの全角/半角キーをIMEのON/OFF切り替えキーに変換。", | |
"manipulators": [{ | |
"conditions": [{ | |
"input_sources": [{ | |
"language": "en" | |
}], | |
"type": "input_source_if" | |
}], | |
"from": { |
This file contains hidden or 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
bool FolderModel::lessThan(const QModelIndex &source_left, const QModelIndex &source_right) const | |
{ | |
QFileInfo l_info = fsModel_->fileInfo(source_left); | |
QFileInfo r_info = fsModel_->fileInfo(source_right); | |
bool ascOrder = (sortOrder_ == Qt::AscendingOrder); | |
if(dotFirst_) | |
{ | |
if(l_info.fileName() == ".") | |
{ |
This file contains hidden or 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
QString FolderModel::filePath(const QModelIndex &index) const | |
{ | |
return fsModel_->filePath(mapToSource(index)); | |
} | |
QModelIndex FolderModel::setRootPath(const QString &path) | |
{ | |
return mapFromSource(fsModel_->setRootPath(path)); | |
} |
This file contains hidden or 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 <QSortFilterProxyModel> | |
#include <QDir> | |
class QFileSystemModel; | |
class QFileIconProvider; | |
class FolderModel : public QSortFilterProxyModel | |
{ | |
public: | |
explicit FolderModel(QObject *parent = Q_NULLPTR); |
This file contains hidden or 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
ImageViewer::ItemWidget::ItemWidget(QByteArray& buffer) : | |
m_buffer(Q_NULLPTR), | |
m_movie(Q_NULLPTR) | |
{ | |
qDebug() << "ImageViewer::ItemWidget::ItemWidget()"; | |
m_buffer = new QBuffer(&buffer); | |
Q_ASSERT(m_buffer); | |
m_movie = new QMovie(m_buffer); |
This file contains hidden or 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 com.example.mharaki.slack; | |
import android.os.AsyncTask; | |
import android.util.Log; | |
import com.squareup.okhttp.FormEncodingBuilder; | |
import com.squareup.okhttp.OkHttpClient; | |
import com.squareup.okhttp.Request; | |
import com.squareup.okhttp.RequestBody; | |
import com.squareup.okhttp.Response; |
NewerOlder