Interactive tool for creating directed graphs, created using d3.js.
Demo: http://bl.ocks.org/cjrd/6863459
Operation:
- drag/scroll to translate/zoom the graph
| // Written by Michael 'Searge' Stoyke in 03/2015 | |
| // Released as public domain, do whatever you want with it! | |
| using System; | |
| using System.IO; | |
| using System.Reflection; | |
| using System.Text; | |
| using Mono.CSharp; | |
| namespace GameLibrary { |
| def Process.gsub pat, sub | |
| mem = File.open('/proc/self/mem', 'r+') | |
| maps = File.open('/proc/self/maps') | |
| maps.each do |map| | |
| from, to, perms, offset = map.scan(/(\h+)-(\h+) (\S+) (\h+)/)[0] | |
| if perms['rw'] | |
| from, to = [from, to].map { |addr| addr.hex + offset.hex } | |
| data = mem.tap { |m| m.seek from }.read(to - from) rescue next |
| private static Vector2 WorldToPixelCoords(Vector3 projectedPoint, Sprite sprite, Transform transform) | |
| { | |
| var textureRect = sprite.textureRect; | |
| var spriteBounds = sprite.bounds; | |
| var localPoint = transform.InverseTransformPoint(projectedPoint); | |
| localPoint.x = (localPoint.x - spriteBounds.min.x) / (spriteBounds.size.x); | |
| localPoint.y = (localPoint.y - spriteBounds.min.y) / (spriteBounds.size.y); |
| package computer; | |
| // Referenced classes of package computer: | |
| // KeyMapping | |
| public class AWTKeyMapping extends KeyMapping | |
| { | |
| public AWTKeyMapping() |
Interactive tool for creating directed graphs, created using d3.js.
Demo: http://bl.ocks.org/cjrd/6863459
Operation:
| // tmux.c | |
| // compile using: cc -o tmux tmux.c | |
| // makeit setuid executable by: chmod +s tmux | |
| // also change owner to desired user: [sudo] chown {usernamehere} tmux | |
| // give it to guests' shell (passwd entry): guest::9999:99:guest user:/tmp:/opt/tmux | |
| // you can delete password with passwd -du {login} | |
| // allow empty passwords with PermitEmptyPasswords yes in sshd_config | |
| // update (18 aug 2016): added dynamic owner change, for security ofc :) |
| /*<?php | |
| //*/public class PhpJava { public static void main(String[] args) { System.out.printf("/*%s", | |
| //\u000A\u002F\u002A | |
| class PhpJava { | |
| function main() { | |
| echo(//\u000A\u002A\u002F | |
| "Hello World!"); | |
| }} | |
| //\u000A\u002F\u002A | |
| PhpJava::main(); |
| using UnityEngine; | |
| using UnityEditor; | |
| using System.IO; | |
| using System.Collections; | |
| public static class CustomInspectorCreator | |
| { | |
| [MenuItem("Assets/Create/Custom Inspector", priority = 81)] | |
| static void CreateInsptorEditorClass() | |
| { |
| import java.io.BufferedReader; | |
| import java.io.InputStreamReader; | |
| import java.util.LinkedList; | |
| import java.util.Scanner; | |
| import java.util.Stack; | |
| final class Cell { | |
| final int col; | |
| final int row; |