Skip to content

Instantly share code, notes, and snippets.

View skyllo's full-sized avatar

Nick skyllo

View GitHub Profile
function *processObj(obj) {
if (!obj) {
return;
}
if (typeof obj === 'object') {
for (const key of Object.keys(obj)) {
yield *processData(obj[key]);
}
} else {
function isMediaRecorderMimeTypeSupported(type) {
return new Promise((resolve, reject) => {
navigator.mediaDevices.getUserMedia({ audio: true }).then(function (stream) {
try {
var options = {mimeType: type};
new MediaRecorder(stream, options);
resolve('supported');
} catch (e) {
reject('not supported');
}
@skyllo
skyllo / babun-conemu-windows7-64bit-command.sh
Created July 23, 2014 09:19
babun-conemu-windows7-64bit-command
"%USERPROFILE%\.babun\cygwin\bin\mintty.exe" /bin/sh -lc 'cd "`cygpath "%V"`"; bash'
#
# Place this code to your .profile, .bashrc, .bash_profile or whatever
#
program_exists () {
type "$1" &> /dev/null ;
}
if program_exists go; then
C:\cygwin\bin\bash.exe --login -i -c 'cd "/cygdrive/c/Users/user1/projects";bash'
#!/bin/bash
sed -i "$ a\LS_COLORS='di=0;35' ; export LS_COLORS" ~/.bashrc
@skyllo
skyllo / git-commands.txt
Last active October 13, 2015 22:38
Git
// Get latest
git pull
// Git submit (automatically adds files)
git commit -a -m "commit message"
git push
// Delete branch
git branch -d branch_name
((javax.swing.plaf.basic.BasicInternalFrameUI) getUI()).setNorthPane(null);
setBorder(null);
find . -name 'core.*' | xargs rm