This little Go program does not run the defer statement when you interrupt by pressing ctrl-C:
package main
import "fmt"
func main() {
defer fmt.Println("Shutting down...")| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <unistd.h> | |
| int main(int argc, char *argv[]) { | |
| char *executable_path; | |
| executable_path = realpath(argv[0], NULL); | |
| if (executable_path == NULL) { | |
| perror("realpath"); |
This little Go program does not run the defer statement when you interrupt by pressing ctrl-C:
package main
import "fmt"
func main() {
defer fmt.Println("Shutting down...")| function love.handlers.myEvent(t) | |
| print("In my event handler:") | |
| print(getmetatable(t)) | |
| print(t.upper) | |
| end | |
| super = { | |
| upper = "hello world" | |
| } |
| /* | |
| * fizzbuzz.wren by Jordan Christiansen | |
| * | |
| * This is a concurrent implementation of FizzBuzz that shows off how to send | |
| * and receive data from Fibers. It was ported from a Go implementation by Russ Cox: | |
| * https://play.golang.org/p/ssVH6Rg3-Z | |
| */ | |
| class Generator { | |
| static create() { |
| local enabledFunctions = require("gamestates/enabledFunctions") | |
| local function emptyFunction() end | |
| local function index(t, key) return t.__parent[key] end | |
| local function indexMeta(t, k) return enabledFunctions[key] and emptyFunction end | |
| local function call(self) return setmetatable({__parent = self}, {__index = index}) end | |
| local GameState = setmetatable({}, {__index = indexMeta, __call = call}) |
| <?xml version="1.0" encoding="UTF-8" standalone="yes"?> | |
| <!-- created on 2017-04-09 00:52:43 - tinyMediaManager 2.9.3.1 --> | |
| <episodedetails> | |
| <title>Episode 26</title> | |
| <showtitle>Nichijou - My Ordinary Life</showtitle> | |
| <rating>0.0</rating> | |
| <votes>0</votes> | |
| <season>1</season> | |
| <episode>26</episode> | |
| <uniqueid>4149349</uniqueid> |
| # Maintainer: Martchus <[email protected]> | |
| # All my PKGBUILDs are managed at https://github.com/Martchus/PKGBUILDs where | |
| # you also find the URL of a binary repository. | |
| pkgname=blackwidowcontrol | |
| pkgver=r10.e793f18 | |
| pkgrel=1 | |
| pkgdesc='Python script to enable macro keys of the Razer BlackWidow keyboard under GNU/Linux' | |
| arch=('any') |
| Title Year Country Language Director Running time Rating Genre | |
| "#7DaysLater" 2013 Australia English Pearson, Daley (I) 7 7.5 Comedy | |
| "#ATown" 2014 USA English Coe, Duncan (I) 10 9.2 Comedy | |
| "#Adulting" 2016 USA English Marchbank, TJ 6 6.3 Comedy | |
| "#lovemilla" 2013 Finland Finnish Nikki, Teemu 6 6.7 Comedy | |
| "$5,000 Video" 2013 USA English Buress, Hannibal 4 6.3 Comedy | |
| "$weepstake$" 1979 USA English Moore, Irving J. 60 5.9 Drama | |
| "'Da Kink in My Hair" 2007 Canada English Granofsky, Anais 30 4.5 Comedy | |
| "'Orrible" 2001 UK English Brigstocke, Dominic 30 6.7 Comedy | |
| "'Til Death" 2006 USA English Alexander, Jason (I) 21 6.5 Comedy |
| Title | Year | Country | Language | Director | Running time | Rating | Genre | |
|---|---|---|---|---|---|---|---|---|
| #7DaysLater | 2013 | Australia | English | Pearson, Daley (I) | 7 | 7.5 | Comedy | |
| #ATown | 2014 | USA | English | Coe, Duncan (I) | 10 | 9.2 | Comedy | |
| #Adulting | 2016 | USA | English | Marchbank, TJ | 6 | 6.3 | Comedy | |
| #lovemilla | 2013 | Finland | Finnish | Nikki, Teemu | 6 | 6.7 | Comedy | |
| $5,000 Video | 2013 | USA | English | Buress, Hannibal | 4 | 6.3 | Comedy | |
| $weepstake$ | 1979 | USA | English | Moore, Irving J. | 60 | 5.9 | Drama | |
| 'Da Kink in My Hair | 2007 | Canada | English | Granofsky, Anais | 30 | 4.5 | Comedy | |
| 'Orrible | 2001 | UK | English | Brigstocke, Dominic | 30 | 6.7 | Comedy | |
| 'Til Death | 2006 | USA | English | Alexander, Jason (I) | 21 | 6.5 | Comedy |
| 0 1 | |
| 0 2 | |
| 0 24 | |
| 1 0 | |
| 1 21 | |
| 1 27 | |
| 2 0 | |
| 2 23 | |
| 2 29 | |
| 3 4 |