Loading

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;

Paste #pxsi49hsl

  1. import std.stdio, std.file, std.path, std.range, std.string, std.algorithm ;
  2.  
  3. string[] filterList = ["./unittest.d"];
  4.  
  5. void main(string[] args)

bin_bcd

  1. .model tiny
  2. .data
  3. bin equ 150
  4. res dw 0
  5. .code

Paste #pqhqjrblm

  1. #include <iostream>
  2. #include <set>
  3. #include <vector>
  4. #include <string>
  5. #include <algorithm>

Paste #p71mc94zb

  1. import sys
  2. sys.stdout = open('results.txt', 'w')
  3.  
  4. total_score_sum = total_score_cnt = 0

Paste #pabiqyq5x

  1. use std::iter::*;
  2. use std::io::{self, Read};
  3.  
  4. #[derive(Debug, Copy, Clone)]
  5. enum Token {