Skip to content

Instantly share code, notes, and snippets.

View brycepj's full-sized avatar

Bryce Johnson brycepj

View GitHub Profile
@brycepj
brycepj / Responsive Forms Screen
Last active August 29, 2015 14:07
Any issues with this?
I'm working on making #sidebar and .main-content-wrap (Forms) play
nice on smaller screens, using some Bootstrap-3-like conventions in
ehr.less, with minimal adjustments to current markup (see below).
The only thing I would need to adjust in the markup is switching
the position of #sidebar and .main-content-wrap (making #sidebar first).
I've tested in Chrome Dev Tools, and it seems to work flawlessly.
But I didn't want to mess with templates/clientforms/display.html
without talking to you first. Thoughts?
@brycepj
brycepj / shapes
Created October 23, 2014 17:14
current shapes mixins
// create something to combine btn and btn-link
.left-triangle(@color, @length, @base) {
display: block;
content: " ";
position: absolute;
border-style: solid;
border-width: @base/2 @length @base/2 0;
border-color: transparent @color transparent transparent;
@brycepj
brycepj / wifi-spoofer
Last active August 29, 2015 14:12
Free Airport Wifi
#!/bin/bash
# get current MAC address
current_grep_MAC=$(ifconfig en1 | grep ether)
for i in $(echo $current_grep_MAC)
do
len="${#i}"
if [ $len -eq "17" ]; then
current_MAC="$i"
@brycepj
brycepj / bug
Created January 12, 2015 22:43
buggy mcbug
22:38:59 sterling | Traceback (most recent call last): [51/1863]
22:38:59 sterling | File "/home/stageguy/sterling/nixd/opt/python3.4/lib/python3.4/site-packages/gunicorn/workers/sync.py", line 93, in han
dle
22:38:59 sterling | self.handle_request(listener, req, client, addr)
22:38:59 sterling | File "/home/stageguy/sterling/nixd/opt/python3.4/lib/python3.4/site-packages/gunicorn/workers/sync.py", line 134, in ha
ndle_request
22:38:59 sterling | respiter = self.wsgi(environ, resp.start_response)
22:38:59 sterling | File "/home/stageguy/sterling/nixd/opt/python3.4/lib/python3.4/site-packages/flask/app.py", line 1836, in __call__
22:38:59 sterling | return self.wsgi_app(environ, start_response)
22:38:59 sterling | File "/home/stageguy/sterling/nixd/opt/python3.4/lib/python3.4/site-packages/flask/app.py", line 1820, in wsgi_app
@brycepj
brycepj / tvpint
Created January 16, 2015 21:57
tv.Int error
Error: No handler defined for <tv.Int>
at DynamicDispatchGraph.extend.mixin.call (http://localhost:8008/kerbin/common-mbundle.32badbc1.js:41713:15)
at GraphDispatcher.extend.call (http://localhost:8008/kerbin/common-mbundle.32badbc1.js:41318:27)
at http://localhost:8008/kerbin/common-mbundle.32badbc1.js:43337:29
at Array.forEach (native)
at import_polymorph (http://localhost:8008/kerbin/common-mbundle.32badbc1.js:43335:6)
at Dispatcher.BaseDispatcher.call (http://localhost:8008/kerbin/common-mbundle.32badbc1.js:41543:15)
at http://localhost:8008/kerbin/common-mbundle.32badbc1.js:43317:70
at Array.forEach (native)
at import_custom (http://localhost:8008/kerbin/common-mbundle.32badbc1.js:43317:16)
@brycepj
brycepj / scope
Created January 19, 2015 19:26
scope problemz
When I inspect the scope `in_labor` equals true. So why is it making the ng-if evaluate to false?
(When I remove in_labor it evaluates to true and displays the .panel)
```
.panel.labor-alert(ng-controller='LaborAlertCtrl' ng-if='apps.KEARTH && laborAlert.show && in_labor')
.panel-body
p
strong In labor: {{ in_labor }}
p
@brycepj
brycepj / bypasser
Created January 28, 2015 20:49
Bypass strongstart survey
angular.element(document.querySelector('[ng-app]'))
.injector()
.get('munDocIO')
.mkDocSaver('ike_presurvey_chore')({data: []})
.then(location.reload.bind(location));
#!/bin/bash
LINE=$(head -n 1 $1);
LENGTH=${#LINE};
if [[ $LENGTH -gt 50 ]]; then {
echo "Commit Aborted!";
echo -e "Message is \e[31m$LENGTH characters long\e[0m, must be <= 50."
exit 1;
} fi;
@brycepj
brycepj / gist:820b053d3501e1a7b489
Last active February 19, 2016 05:37
monkeyface API 1.0
1.0
All Types
- is(type)
- ensures that type matches
- string, object, array, function, Boolean
- collection types 'string[]'
- takes literals as well ({}, [])
- returns value
Objects, Arrays