This file contains hidden or 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 python3 | |
import gi | |
# gtk import | |
gi.require_version("Gtk", "3.0") | |
from gi.repository import Gtk, GLib | |
# thread import | |
import threading | |
# for sleep |
This file contains hidden or 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
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
void parse(char* in); | |
void main(){ | |
char* in="12+(13-22)+(2-4/(33-456))"; | |
parse(in); | |
} |
This file contains hidden or 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
#define _GNU_SOURCE | |
#include <sched.h> | |
#include <unistd.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <sys/mount.h> | |
#include <errno.h> | |
#include <sys/types.h> | |
#include <sys/wait.h> | |
#include <security/pam_appl.h> |
This file contains hidden or 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
0.0.0.0 0000a3-1.l.windowsupdate.com | |
0.0.0.0 000a55-1.l.windowsupdate.com | |
0.0.0.0 000a56-1.l.windowsupdate.com | |
0.0.0.0 000a60-1.l.windowsupdate.com | |
0.0.0.0 000afa-1.l.windowsupdate.com | |
0.0.0.0 000b3d-1.l.windowsupdate.com | |
0.0.0.0 000b25-1.l.windowsupdate.com | |
0.0.0.0 000b62-1.l.windowsupdate.com | |
0.0.0.0 0b66ee6159468fcd4bf15132fbbcc861.clo.footprintdns.com | |
0.0.0.0 000b78-1.l.windowsupdate.com |
This file contains hidden or 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 | |
{ | |
echo -ne "HTTP 1.1 200 OK\n\r" | |
echo -ne "Content-type: text/event-stream\n\n" | |
cat | |
} | busybox nc -l -p 8000 |
This file contains hidden or 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/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 |
This file contains hidden or 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/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 |
This file contains hidden or 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 python3 | |
import sys | |
import gi | |
from gi.repository import GLib | |
import dbus | |
from dbus.mainloop.glib import DBusGMainLoop | |
token = "" | |
id = "" |
This file contains hidden or 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 python3 | |
import gi | |
gi.require_version("Gtk", "3.0") | |
from gi.repository import Gtk, GLib | |
main = Gtk.Window() | |
button = Gtk.Button() | |
label = Gtk.Label() |
This file contains hidden or 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
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) |