This file contains 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 | |
ifile=$1; shift | |
ofile=$1; shift | |
awk '/^pkgrel/ { match( $0, /^pkgrel=([[:digit:]]+)/, Arr ); printf "pkgrel=%s\n", Arr[1]+1 } | |
! /^pkgrel/ { print } | |
' ${ifile} > ${ofile}.tmp | |
mv ${ofile}.tmp ${ofile} |
This file contains 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
Index: broadcom-wl/src/src/wl/sys/wl_cfg80211.c | |
=================================================================== | |
--- broadcom-wl.orig/src/src/wl/sys/wl_cfg80211.c | |
+++ broadcom-wl/src/src/wl/sys/wl_cfg80211.c | |
@@ -1466,7 +1466,7 @@ wl_cfg80211_get_station(struct wiphy *wi | |
scb_val.val = 0; | |
err = wl_dev_ioctl(dev, WLC_GET_RSSI, &scb_val, sizeof(scb_val_t)); | |
if (err) { | |
- WL_ERR(("Could not get rssi (%d)\n", err)); | |
+ // WL_ERR(("Could not get rssi (%d)\n", err)); |
This file contains 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
# A visitor pattern implementation in Python | |
class Visitor: | |
def visit(self, obj): | |
func_name = 'visit_' + obj.__class__.__name__ | |
visit_func = getattr(self, func_name) | |
visit_func(obj) | |
def visit_Tree(self, obj): | |
pass |
This file contains 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
class Visitor: | |
def visit(self, obj): | |
getattr(self, 'visit_' + obj.__class__.__name__)(obj) | |
def visit_Tree(self, t): | |
pass | |
def visit_Leaf(self, l): | |
pass |
This file contains 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
<?xml version="1.0" encoding="utf-8"?> | |
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only" page-range-format="minimal" default-locale="en-US"> | |
<info> | |
<title>Journal of Combinatorics</title> | |
<id>http://www.zotero.org/styles/journal-of-combinatorics</id> | |
<link href="http://www.zotero.org/styles/journal-of-combinatorics" rel="self"/> | |
<link href="http://www.e-publications.org/intlpress/support/" rel="documentation"/> | |
<author> | |
<name>Alafate Julaiti</name> | |
<email>[email protected]</email> |
This file contains 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
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\Directory\Background\shell\open_msys2] | |
@="Open MSYS2 here" | |
[HKEY_CLASSES_ROOT\Directory\Background\shell\open_msys2\command] | |
@="c:\\msys64\\usr\\bin\\mintty.exe /bin/sh -lc 'cd \"$(cygpath \"%V\")\"; exec bash'" | |
[HKEY_CLASSES_ROOT\Folder\shell\open_msys2] | |
@="Open MSYS2 here" |
This file contains 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
#! /usr/bin/env runhaskell | |
-- {{{1 imports | |
import Control.Arrow | |
import Data.List | |
import Data.Maybe | |
import Data.Time.Format | |
import Data.Time.LocalTime | |
import System.Directory | |
import System.Environment |
This file contains 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
Vi upptäcker bättre sätt att utveckla mjukvara genom att göra det och genom | |
att hjälpa andra att göra det. Genom detta arbete har vi lärt oss värdesätta: | |
* *Funktioner och Typer* mer än klasser | |
* *Renhet* mer än mutation | |
* *Komposition* mer än arv | |
* *Högre ordningens funktioner* mer än metodbindning | |
* *Options* mer än nulls | |
Det betyder att det finns värde i sakerna till höger (förutom null), men vi |
This file contains 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
cmake_minimum_required(VERSION 3.5) | |
project(DBusTest) | |
find_package(Qt5 CONFIG REQUIRED Core DBus) | |
set(prog_SRCS my.test.Calculator.xml) | |
qt5_generate_dbus_interface(Calc.hh | |
my.test.Calculator.xml | |
OPTIONS -A | |
) |
This file contains 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
(ns bg.core | |
(:require [quil.core :as q :include-macros true] | |
[quil.middleware :as m] | |
[bg.image :as i])) | |
(enable-console-print!) | |
(println "bg.core loaded") | |
(defn setup [] | |
(let [img (q/load-image i/img)] |
OlderNewer