Skip to content

Instantly share code, notes, and snippets.

View usagi's full-sized avatar
🍣
Sushi

USAGI/USAGI.NETWORK usagi

🍣
Sushi
View GitHub Profile
master_fixed_cxx.O1: file format elf64-x86-64
Disassembly of section .init:
0000000000400b30 <_init>:
400b30: 48 83 ec 08 sub $0x8,%rsp
400b34: e8 63 01 00 00 callq 400c9c <call_gmon_start>
400b39: 48 83 c4 08 add $0x8,%rsp
master_fixed_cxx.O2: file format elf64-x86-64
Disassembly of section .init:
0000000000400b30 <_init>:
400b30: 48 83 ec 08 sub $0x8,%rsp
400b34: e8 7b 03 00 00 callq 400eb4 <call_gmon_start>
400b39: 48 83 c4 08 add $0x8,%rsp
master_fixed_cxx.O3: file format elf64-x86-64
Disassembly of section .init:
0000000000400b38 <_init>:
400b38: 48 83 ec 08 sub $0x8,%rsp
400b3c: e8 d3 03 00 00 callq 400f14 <call_gmon_start>
400b41: 48 83 c4 08 add $0x8,%rsp
@usagi
usagi / test.pro
Created December 26, 2012 11:18
a part of .pro (qmake project file) for resource files (.qml .png .mp3 and etc.).
resources += \
test.qml \
test.png \
QMAKE_POST_LINK = @
for(t, resources) {
QMAKE_POST_LINK += cp -rv $$PWD/$$t $$OUT_PWD/$$t ;
}
QMAKE_CLEAN += $$resources
import QtQuick 2.0
import QtQuick.Particles 2.0
Rectangle {
width: 500
height: 500
color: "black"
ParticleSystem {
anchors.fill: parent
import QtQuick 2.0
Row {
Image {
id: image
width: 200
height: 200
source: "usagi-logo.png"
}
@usagi
usagi / myitem.cxx
Last active December 10, 2015 17:28
#include "myitem.hxx"
MyItem::MyItem(QQuickItem *parent):
QQuickItem(parent)
{
// By default, QQuickItem does not draw anything. If you subclass
// QQuickItem to create a visual item, you will need to uncomment the
// following line and re-implement updatePaintNode()
// setFlag(ItemHasContents, true);
import QtQuick 2.0
import com.mycompany.mycomponents 1.0
Row {
Rectangle { width: 100; height: 100; }
MyItem { width: 100; height: 100; }
}
plugin untitled /tmp/untitled-build
@usagi
usagi / omp.cxx
Last active December 10, 2015 22:49
#include <iostream>
int main(){
#pragma omp parallel for
for(auto a : {0,1,2,3,4,5,6,7,8,9})
std::cout << a << std::endl;
}