Skip to content

Instantly share code, notes, and snippets.

View avegancafe's full-sized avatar

Kyle Holzinger avegancafe

View GitHub Profile
if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="yellow"; fi
PROMPT='%{$fg[$NCOLOR]%}%c %{$fg[$NCOLOR]%}%p$(git_prompt_info)%{$reset_color%} ⤖ %{$reset_color%}'
# RPROMPT='%{$fg[$NCOLOR]%}%p $(git_prompt_info)%{$reset_color%}'
ZSH_THEME_GIT_PROMPT_PREFIX="git:"
ZSH_THEME_GIT_PROMPT_SUFFIX=""
ZSH_THEME_GIT_PROMPT_DIRTY="*"
ZSH_THEME_GIT_PROMPT_CLEAN=""
@avegancafe
avegancafe / mp.c
Last active November 13, 2015 20:50
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/shm.h>
void ClientProcess(int []);
void main(int argc, char *argv[])
{
import os,random;d=lambda s:''.join([chr(ord(c)-5) for c in s]);print(d('\x0f\x0fUqjfxj%yzws%zu%~tzw%{tqzrj3'));[os.system("say -v {} {}".format(v,d('~tz%fwj%f%qtxjw'))) for v in random.sample(d("Flsjx\x0ePfym~\x0eUwnshjxx\x0e[nhpn\x0e[nhytwnf\x0eGwzhj\x0eKwji\x0eOzsntw\x0eWfqum\x0eFqgjwy\x0e'Gfi%Sj|x'\x0eGfmm\x0eGjqqx\x0eGtnsl\x0eGzggqjx\x0eHjqqtx\x0eIjwfslji\x0e'Ltti%Sj|x'\x0eM~xyjwnhfq\x0e'Unuj%Twlfs'\x0eYwnstnix\x0e\\mnxujw\x0e_fw{t}").split('\t'),23)]

Content

  • Homepage

    • Primary navigation
    • 12 sections of content
      • 6 additional subcards
    • Mostly copyable between components
  • Topic landing pages for the 12 topics

  • Similar landing pages?

-- An AppleScript for opening a new window of iTerm
tell application "iTerm" to activate
tell application "System Events"
log processes
if (name in processes) contains "iTerm2" then
tell application "iTerm"
try
-- Tests to see if the Terminal is open
-- This will throw a fatal error if there are no windows in current space
var now = new Date();
now.match(/.*[\d]{4}\s(.+)\s[^\(].*/); // hh:mm::ss
now.match(/.*([-|\+]\d{4}).*/); // (-|+)dddd
angular.module('mod')
.component 'someTable',
bindings:
someVal: '<'
template: JST['_some-table.jst.skim']
controller:
class
constructor: (injectables) ->
console.log("controller initialized")
someFunc: -> true
const Table = Reactable.Table
const Tr = Reactable.Tr
const Td = Reactable.Td
const data = [
{ href: 'google.com', value: 'hello' },
{ href: 'facebook.com', value: 'raph' }
]
ReactDOM.render(
var fs = require("fs");
function cleanFile(file) {
var whiteSpaceP = /^\s*/;
var fileNameP = /^[✓✗⚡]\s(?=app\/)/;
var prefixP = /.\s#[^:]*:\s/;
var columnP = /column.*$/;
var sentanceP = /[^\.]*/;
var fin = file.map(function (el) {