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
/** | |
* Varargs.vala | |
* | |
* @see https://wiki.gnome.org/Projects/Vala/Tutorial#Variable-Length_Argument_Lists | |
* | |
* | |
* valac Varargs.vala | |
* ./Varargs | |
* | |
*/ |
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
/** | |
* AMD Compatible module loader | |
* | |
* @param root object | |
* @returns module loader function define | |
* | |
*/ | |
var define = (function (modules) { | |
return (name, deps, callback) => { | |
modules[name] = { id: name, exports: {} } |
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
import Ffi from 'ffi' | |
import {buffer} from 'ffi' | |
import Stdlib from 'stdlib' | |
export const mt19937 = (function(stdlib, foreign, heap) { | |
"use asm"; | |
var HEAP = new stdlib.Uint32Array(heap); | |
var malloc = foreign.malloc; |
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
GLib = imports.gi.GLib | |
Gio = imports.gi.Gio | |
Gdk = imports.gi.Gdk | |
Gtk = imports.gi.Gtk | |
Notify = imports.gi.Notify | |
Lang = imports.lang | |
APP_NAME = "Grrr!" | |
Notify.init(APP_NAME) |
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 vala | |
/** | |
* ValaC2 | |
* | |
* breaks valac into 2 steps with plugin pre/post processing | |
* this front end just collects all of the command line arguments and runs the coffeescript. | |
* | |
* command line flags are mangled to prevent the cli from expanding them. | |
* | |
* |
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
#installs the browser-based editor Codiad | |
# | |
# based on rnauber/install_codiad.sh | |
DEST=~/codiad | |
ADDR=127.0.0.1:53162 | |
pkg install php | |
if [ ! -e $DEST ] |
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
/******************************************************************* | |
* | |
* MIT License Copyright (c) 2018 Dark Overlord of Data | |
* tglm is Tiny GLM for c99 | |
* | |
* opengl math helpers inspired by GLM. | |
* using clang vector extensions and function overload. | |
* | |
*/ | |
#pragma once |
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
apt update && apt upgrade -y | |
apt install lsb-core build-essential dialog apt-utils -y | |
apt install xfce4 -y | |
export DISPLAY=:0 PULSE_SERVER=tcp:127.0.0.1:4712 | |
startxfce4 |
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
import urllib.request,os,hashlib; h = '6f4c264a24d933ce70df5dedcf1dcaee' + 'ebe013ee18cced0ef93d5f746d80ef60'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by) |
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
in Linuxm run gparted and select device | |
Partition -> Delete | |
or | |
Partition -> Format To: select cleared | |
Edit -> Apply | |
it should now say unalocated! | |
Device -> Create Partition Table: select msdos |