Skip to content

Instantly share code, notes, and snippets.

Avatar

Rob McAuley rmcauley

View GitHub Profile
View gist:0ec5acb7437e3a1ace87
GAME
----
"cooldown_percentage": 0.6,
"cooldown_highest_rating_multiplier": 0.6,
"cooldown_size_min_multiplier": 0.4,
"cooldown_size_max_multiplier": 1.0,
"cooldown_size_slope": 0.1,
"cooldown_size_slope_start": 20,
"cooldown_song_min_multiplier": 0.2,
View gist:3793ba0078aac4f6ba81
var FrameTransformer = function(frame, $state, $http, user) {
frame.go = function() {
if (frame.coach.user_id == user.user_id) {
$state.go("rt.frame.as_coach", { "frame_id": frame.id });
}
else {
$state.go("rt.frame", { "frame_id": frame.id });
}
};
View gist:5e462ee589d16df18214
ngApp.factory("someResource", function($resource) {
var res = $resource("/some/url/:id", { id: '@id' });
res.prototype.blerch = function() { console.log(this.id); };
// possibility 1
res.attr1 = "hello";
return res;
});
var someResourceResolve = function($resource, $stateParams, someResource) {
View gist:65ea9fe82827cb205c34
parser = RainwaveParser("main")
parser.feed('<html><head><title>Test</title></head>'
'<body>'
'<h1 class="hello" bind="h1">Parse me!</h1>'
'{{#each song }}'
' <div class="song" class="{{ crap }}">{{ title }}</div>'
'{{/each}}'
'</body></html>'
)
parser.close()
@rmcauley
rmcauley / tmpltest.html
Last active Aug 29, 2015
Works Of A Man Gone Mad
View tmpltest.html
<html>
<head>
<!--
<h1 class="hello" bind="h1">Parse me!</h1>
{{#each line }}
<div class="song" class="{{ title }}" bind="title">
` {{ title }}
</div>
@rmcauley
rmcauley / pref_breakdown.txt
Created Feb 24, 2015
Rainwave Preference Breakdown
View pref_breakdown.txt
Rainwave Registered User Preference Breakdown
=============================================
Show global ratings in playlist:
detail_global_ratings | false | 571
detail_global_ratings | true | 60
Hide all grey/global ratings:
hide_global_ratings | false | 601
hide_global_ratings | true | 30
View gist:b510b23dcb736f2f668e
var Rating = function() {
var self = {};
// blah blah
var RatingPrototype = {
onclick: function(e) { this.something(); }
};
self.create = function(json) {
if (json.something) { this.crap = "mglets"; }
View gist:331dc241c9ef3bba9b51
song_filename | song_rating
---------------------------------------------------------------------------------------------------------+-------------
/home/icecast/ocr-only/HumansGearsXenogearsReMixed/ShitonCitan.mp3 | 1.4
/home/icecast/ocr-all/FinalFantasyIV/EverclearHangoverIV.mp3 | 1.4
/home/icecast/ocr-all/MissileMasterEpisode1InvasionOriginalSoundtrack/101_MissileMasterIntro.mp3 | 1.4
/home/icecast/ocr-all/BarbieSuperModel/BarbieSupermodelPlasticGoddessOCReMix.mp3 | 1.5
/home/icecast/ocr-all/PokemonTheMissingnoTracks/104_MyGreatestRival.mp3 | 1.5
/home/icecast/ocr-all/ValkyrieProfile/ValkyrieProfileTheShiningBlueArmorDescendsOCReMix.mp3 | 1.6
/home/icecast/ocr-all/ReturnAllRobotsOriginalSoundtrack/KoldKraft.mp3
@rmcauley
rmcauley / SassMeister-input.scss
Created May 27, 2015
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// Sass (v3.4.13)
// Compass (v1.0.3)
// ----
div.song {
div.entry_votes {
display: none;
float: right;
padding-right: .5em;
@rmcauley
rmcauley / SassMeister-input.scss
Created May 27, 2015
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// Sass (v3.4.13)
// Compass (v1.0.3)
// ----
div.song {
div.entry_votes {
display: none;
float: right;
padding-right: .5em;
You can’t perform that action at this time.