Skip to content

Instantly share code, notes, and snippets.

View Funi1234's full-sized avatar
🎯
Focusing

Dylan Conway Funi1234

🎯
Focusing
View GitHub Profile
var neverGonna = ["give you up", "let you down", "run around and desert you", "make you cry", "say goodbye", "tell a lie and hurt you"];
for (var i=0; i<neverGonna.length; i++){
console.log("Never gonna " + neverGonna[i]);
}
@Funi1234
Funi1234 / Zigbee Coordinator C1 Log
Last active August 25, 2015 21:41
Zigbee Use Case 3 Node logs
<?xml version="1.0" encoding="UTF-8"?>
<!-- NOTE: The time stamps (frame_date) within this log are incorrect by +3 seconds.
The node M2 was selected as the key reference point for time in this experiment.
The desynchronisation between M2 and C1 has been adjusted to compensate for this within the document. -->
<data>
<console_session type="api2">
<module_name></module_name>
<module_mac>0013A2004099D823</module_mac>
@Funi1234
Funi1234 / iOS_Image_Resize.jsx
Last active August 5, 2016 14:00
Generate iOS Images @1, @2, @3
// Photoshop Script to Create UI Images for pixel densities
//
//
// Copyright (c) 2016 Dylan Conway
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
@Funi1234
Funi1234 / fixContent.js
Created February 19, 2016 21:08
Fix ImageSet Content.json for iOS Image Resize
"use strict";
var fs = require('fs');
var processContents = function (path, contents) {
var imagedata = contents['images'] !== undefined ? contents['images'] : null
if (imagedata == null) {return}
@Funi1234
Funi1234 / MTG_CSV.js
Created February 21, 2016 01:41
Convert Decked Builder CSV to Tapped Out Inventory Format
/**
* Created by Funi1234 on 21/02/2016.
*/
var csv = require('fast-csv'),
fs = require("fs"),
path = require("path");
var sets = {'Zendikar' :'(ZEN)',
@Funi1234
Funi1234 / gitUpdate.sh
Last active May 12, 2016 15:57
Iterate through directories and run git pull on all.
for d in */; do
pushd $d
git pull
popd
done
@Funi1234
Funi1234 / Xcode Server Slack Notification
Last active November 30, 2016 05:21
xcodeSlack.sh
#!/bin/sh
#
# Created by Funi1234 on 30/06/2016.
#
if [ -z "$1" ]; then
echo "Slack Webhook URL Required."
echo "Exiting"
@Funi1234
Funi1234 / shudownAllSimulators.sh
Created October 13, 2016 13:43
xcrun simctl shutdown all simulators
xcrun simctl list devices | grep '\(Shutdown\)' | grep -oE '[0-9A-Z]{8}-([0-9A-Z]{4}-){3}[0-9A-Z]{12}' | xargs -I {} xcrun simctl shutdown "{}"
@Funi1234
Funi1234 / hck.txt
Created May 16, 2017 10:29
HKC Perl
#!/usr/bin/perl -w
use strict;
use Device::SerialPort qw( :PARAM :STAT 0.07 );
use MIME::Lite;
my $to = '[email protected]';
my $cc;
my $from = '[email protected]';
my $subject;
my $message;
@Funi1234
Funi1234 / iOS_AppIcon_Generator.jsx
Created February 15, 2018 14:38
iOS App Icon Generator
// Photoshop Script to Create iPhone App Icons from iTunesArtwork/1024px size image
//
// In the Event of name collisions this script will overwrite files in the export folder.
//
// MIT License
//
// Copyright (c) 2016 Dylan Conway
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal