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 MyDraggable extends StatefulWidget { | |
final Widget child; | |
final Widget childWhenDragging; | |
final Widget feedback; | |
final VoidCallback onDragEnd; | |
MyDraggable({ | |
@required this.child, | |
@required this.childWhenDragging, | |
@required this.feedback, | |
this.onDragEnd |
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
pub fn init_idt( | |
) { | |
// IDT.load(); | |
} | |
extern "x86-interrupt" fn breakpoint_handler( | |
stack_frame: &mut x86_64::structures::idt::ExceptionStackFrame | |
) { | |
// println!("EXCEPTION: BREAKPOINT\n{:#?}", stack_frame); | |
} |
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
$> tsc src/foo.ts | |
src/foo.ts:29:20 - error TS2339: Property 'length' does not exist on type 'string | {}'. | |
Property 'length' does not exist on type '{}'. | |
18 new Foo("wot").x().length | |
~~~~~~ | |
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
UNWIND {legs} as pair | |
MATCH (stopA:TdefPos)--(stopB:TdefPos) | |
WHERE | |
(stopA.logicalTrainId = stopB.logicalTrainId) | |
AND | |
(stopA.stopId = pair[0] AND stopB.stopId = pair[1]) | |
RETURN stopA.trainId as trainId, stopA.itineraryId as itineraryId, stopA.periodId as periodId |
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
(let [items-by-month (group-by get-month items)] | |
(mapcat (fn [month] (sort-by get-date (get items-by-month month))) | |
(sort (keys items-by-month)))) |
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 huffda.expectations-basics-test | |
(:require [clojure.test :refer [deftest testing is async]] | |
[huffda.expectations :as expec] | |
[cljs.core.async :refer [chan <! >! put! close! alts! timeout promise-chan]]) | |
(:require-macros [cljs.core.async.macros :refer [go go-loop]])) | |
(defmacro async-test [name & form] | |
`(testing name | |
(async done | |
(do ~@form) |
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 huffda.expectations-basics-test | |
(:require [clojure.test :refer [deftest testing is async]] | |
[huffda.expectations :as expec] | |
[cljs.core.async :refer [chan <! >! put! close! alts! timeout promise-chan]]) | |
(:require-macros [cljs.core.async.macros :refer [go go-loop]])) | |
(defmacro async-test [& form] | |
`(async done | |
(go | |
(do ~@form) |
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
Disable-UAC | |
Disable-BingSearch | |
Disable-GameBarTips | |
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowFileExtensions | |
Set-TaskbarOptions -Size Small -Dock Bottom -Combine Full -Lock | |
Set-TaskbarOptions -Size Small -Dock Bottom -Combine Full -AlwaysShowIconsOn |
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
;; [org.clojure/clojure "1.8.0"] | |
;; [org.clojure/clojurescript "1.9.946"] | |
;; [org.clojure/core.async "0.3.465"] | |
(ns huffda.expectations-basics-test | |
(:require [clojure.test :refer [deftest testing is async]] | |
[huffda.expectations :as expec] | |
[cljs.core.async :refer [chan <! >! put! close! alts! timeout promise-chan]]) | |
(:require-macros [cljs.core.async.macros :refer [go go-loop]])) |
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
package no.nsb.altrans.gui.homeless | |
import javax.servlet.Filter | |
import javax.servlet.FilterChain | |
import javax.servlet.FilterConfig | |
import javax.servlet.ServletContext | |
import javax.servlet.ServletException | |
import javax.servlet.ServletRequest | |
import javax.servlet.ServletResponse | |
import javax.servlet.http.HttpServletRequest |
NewerOlder