Loading

gcc bug

  1. #include <cstdio>
  2.  
  3.  
  4. struct S
  5. {

gcc bug

  1. #include <cstdio>
  2.  
  3.  
  4. struct S
  5. {

gcc bug

  1. #include <cstdio>
  2.  
  3. struct S
  4. {
  5.     void* get()

Paste #phxxr3cot

  1. void main()
  2. {
  3.     int len = 2;
  4.     string result;

Paste #pygi1i6cu

  1. void main()
  2. {
  3.     int len = 2;
  4.     string result;

gdc.d

  1. void main(){}
  2.     import core.sys.posix.unistd;
  3. import std.path;
  4. import std.stdio;
  5. // =============================================================================

manually install all the

  1. sudo dnf install file-devel exiv2-devel xorg-x11-util-macros flac-devel cups-devel libdvdread-devel mesa-libGLES-devel speex-devel avahi-gobject-devel alsa-lib-devel systemd-devel libXt-devel python3-cairo-devel opus-devel xkeyboard-config-devel libexif-devel graphviz-devel libtool-ltdl-devel libcap-devel plymouth-devel gpgme-devel exempi-devel libvirt-devel libyaml-devel libtiff-devel libxklavier-devel nss-devel gmime-devel libxml2-devel xorg-x11-xtrans-devel libpwquality-devel libXtst-devel libwebp-devel libarchive-devel rubypick hyphen-devel libxslt-devel gnutls-devel p11-kit-devel gtkspell3-devel libgcrypt-devel mozjs24-devel lcms2-devel anthy-devel libvpx-devel libXc

Power plugin update kbd

  1. diff --git a/plugins/power/gsd-power-manager.c b/plugins/power/gsd-power-manager.c
  2. index 2324975..2614701 100644
  3. --- a/plugins/power/gsd-power-manager.c
  4. +++ b/plugins/power/gsd-power-manager.c
  5. @@ -1139,8 +1139,6 @@ upower_kbd_set_brightness (GsdPowerManager *manager, guint value, GError **error

sample

  1. {
  2.     "to": [{"username": "gaurav"}, {"username": "admin"}],
  3.     "content_object": "/post/posts/1",
  4.     "content_parent_object": null
  5. }

traceback

  1. Exception: {"Exception":"TypeError","Message":"Argument 6 passed to OCA\\Music\\Controller\\SettingController::__construct() must implement in
  2. terface OCP\\Files\\Folder, null given, called in \/home\/gaurav\/dev\/core\/apps\/music\/app\/music.php on line 128","Code":0,"Trace":"#0 \/home\/gaurav\/dev\/core\/app
  3. s\/music\/app\/music.php(128): OCA\\Music\\Controller\\SettingController->__construct('music', Object(OC\\AppFramework\\Http\\Request), Object(OCA\\Music\\Db\\AmpacheUse
  4. rMapper), Object(OCA\\Music\\Utility\\Scanner), false, NULL, Object(OC\\AllConfig), Object(OC\\Security\\SecureRandom), Object(OC\\L10N\\L10N))\n#1 \/home\/gaurav\/dev\/
  5. core\/3rdparty\/pimple\

tee() for iterators

  1. use std::collections::VecDeque;
  2. use std::sync::{Arc,Mutex};
  3.  
  4. struct Tee<I: Iterator> where I::Item: Clone {
  5.     d: Arc<Mutex<TeeData<I>>>,

Simple grep in Rust

  1. use std::collections::*;
  2. use std::io;
  3.  
  4. // Machine
  5. struct MachineSpec {

basic grep in Rust

  1. use std::collections::*;
  2. use std::io;
  3.  
  4. // Machine
  5. struct MachineSpec<T: Copy + Eq + std::hash::Hash> {

Paste #pipkovoqt

  1. use std::collections::*;
  2. use std::io;
  3.  
  4. // Machine
  5. struct MachineSpec<T: Copy + Eq + std::hash::Hash> {

Paste #pka5bjh2j

  1. #include <string>
  2. #include <algorithm>
  3. #include <iostream>
  4.  
  5. using namespace std;