C++ version
#include <iostream>
int main(){
std::cout << "Hello World" << std::endl;
}
# üşengeçlik | |
alias c='clear' | |
alias e='export' | |
alias a='alias' | |
alias t='touch' | |
alias m='mkdir -pv' | |
alias r='rm -rfv' | |
alias x='chmod +x -R' | |
alias h='history' | |
alias e='exit' |
#!/bin/bash | |
{ | |
echo -ne "HTTP 1.1 200 OK\n\r" | |
echo -ne "Content-type: text/event-stream\n\n" | |
cat | |
} | busybox nc -l -p 8000 |
#!/usr/bin/python3 | |
from Xlib import X, display | |
from Xlib import Xatom | |
class SimpleWindowManager: | |
def __init__(self): | |
self.display = display.Display() | |
self.root = self.display.screen().root | |
self.displayWidth = self.display.screen().width_in_pixels |
#!/bin/sh | |
# minimal getty like script | |
# speed ignored. | |
# bgetty 38400 tty1 /bin/login | |
if [ $# -lt 3 ] ; then | |
echo "Usage: $0 [speed] [tty] [command]" | |
exit 1 | |
fi | |
exec >/dev/$2 | |
exec </dev/$2 |
#!/usr/bin/env python3 | |
import sys | |
import gi | |
from gi.repository import GLib | |
import dbus | |
from dbus.mainloop.glib import DBusGMainLoop | |
token = "" | |
id = "" |
#!/usr/bin/env python3 | |
import gi | |
gi.require_version("Gtk", "3.0") | |
from gi.repository import Gtk, GLib | |
main = Gtk.Window() | |
button = Gtk.Button() | |
label = Gtk.Label() |
diff --git a/src/cmd/compile/internal/types2/stmt.go b/src/cmd/compile/internal/types2/stmt.go | |
index e79e4cd..e135c1d 100644 | |
--- a/src/cmd/compile/internal/types2/stmt.go | |
+++ b/src/cmd/compile/internal/types2/stmt.go | |
@@ -63,9 +63,9 @@ func (check *Checker) usage(scope *Scope) { | |
sort.Slice(unused, func(i, j int) bool { | |
return cmpPos(unused[i].pos, unused[j].pos) < 0 | |
}) | |
- for _, v := range unused { | |
- check.softErrorf(v.pos, UnusedVar, "%s declared and not used", v.name) |
#!/usr/bin/bash | |
dpkg-query -W -f='${Section}\t${Package}\n' | grep ^non-free | sed "s/.*\t//g" | xargs apt purge -y | |
pkg="" | |
set -e | |
export LANG=C | |
apt-cache policy $(apt list --installed | sed "s/\/.*//g") | while read line ; do | |
if echo "$line" | grep "^[a-zA-Z0-9-]*:$" >/dev/null ; then | |
pkg=$(echo $line | sed "s/://g") | |
elif echo $line | grep "non-free" >/dev/null ; then | |
echo $pkg |
#!/bin/bash | |
set +e | |
f=$(mktemp) | |
red="\033[31;1m" | |
yellow="\033[33;1m" | |
reset="\033[;0m" | |
check_out_of_date(){ | |
link=$(curl https://archlinux.org/packages/?q=$1 | grep -v unstable | grep ">$1<" | grep "<td><a href=" | head -n1 | cut -f2 -d"\"") | |
if [[ $link == "" ]] ; then | |
return |