Skip to content

Instantly share code, notes, and snippets.

View squeedee's full-sized avatar
💃
Choreographer to the stars!

Rasheed Abdul-Aziz squeedee

💃
Choreographer to the stars!
View GitHub Profile
@squeedee
squeedee / md5.py
Last active February 14, 2018 15:40
Md5 things in python
def execute_build():
os.chdir("./dashboard2")
subprocess.call(["npm", "run", "build"])
os.chdir("../")
def save_srcs_md5(md5, path):
file = open(path, "w")
file.write(md5)
file.close()
@squeedee
squeedee / example.jsx
Created January 17, 2018 16:54
Simple props based react router
<Router authorized={true}>
<Match fn={(props) => (props.authorized)}>
<Environments/>
</Match>
<Match fn={(props) => (!props.authorized)}>
<SlackPage/>
</Match>
</Router>
@squeedee
squeedee / gist:1327741e1a3bdd1c70e2fc91408dd2da
Created February 17, 2017 19:54
Pointers and copying in golang
https://play.golang.org/p/TNQIYTP_GA
@squeedee
squeedee / stickicons.md
Created November 10, 2016 16:53
Stick Icons
\O/ Yay

O/ Hi

\O Hi Back

O> Haw?

_O&gt; Archer
@squeedee
squeedee / 1.Readme.MD
Last active May 12, 2023 19:46
Adding your ssh key to lastpass

Setup

  1. Install lpass, the last pass command line tool
brew install lastpass-cli --with-pinentry
  1. Create a passphrase encrypted key and make sure you put the public key where you need it, eg: github
@squeedee
squeedee / notes.md
Created September 24, 2016 15:46
i2s notes

The I2S_LRCLK and I2S_SCLK can be programmed as master (driven to an external target) or slave (driven from an external source). When the clocks are in slave mode, they must be synchronous to SYS_MCLK. For this reason the SGTL5000 can only operate in synchronous mode (see Clocking) while in I2S slave mode. In master mode, the clocks are synchronous to SYS_MCLK or the output of the PLL when the part is running in asynchronous mode

http://engineering.stackexchange.com/questions/3959/what-are-left-justified-and-right-justified-adc-results

http://cache.nxp.com/files/training/Serial-Audio-Interface-Training.pdf

http://www.nxp.com/files/microcontrollers/doc/app_note/AN4520.pdf

http://www.nxp.com/files/32bit/doc/app_note/AN4369.pdf

olor "
diff --git a/plugins/available/cloud_foundry.plugin.bash b/plugins/available/cloud_foundry.plugin.bash
new file mode 100644
index 0000000..b650696
--- /dev/null
+++ b/plugins/available/cloud_foundry.plugin.bash
@@ -0,0 +1,12 @@
+cite about-plugin
+about-plugin 'Adds Cloud Foundry to PS1'
+
olor "
diff --git a/plugins/available/cloud_foundry.plugin.bash b/plugins/available/cloud_foundry.plugin.bash
new file mode 100644
index 0000000..b650696
--- /dev/null
+++ b/plugins/available/cloud_foundry.plugin.bash
@@ -0,0 +1,12 @@
+cite about-plugin
+about-plugin 'Adds Cloud Foundry to PS1'
+
groups:
- name: vintage-jobs
jobs:
- pivnet-base-image
- pivnet-bundle-image
- db-restore-acceptance
- pivnet-acceptance-tests
- pivnet-deploy
- pivnet-backup-database
- browser-regression-test
@squeedee
squeedee / my_helper.js
Created December 2, 2015 15:09
Real rendering in jasmine with react
global.useComponent = function(componentToRender, defaultProperties) {
defaultProperties = _.merge({}, defaultProperties);
beforeEach(function() {
this.renderComponent = function(opts) {
opts = _.assign({}, defaultProperties, opts);
this.component = TestUtils.renderIntoDocument(
React.createElement(componentToRender, opts)
);