Skip to content

Instantly share code, notes, and snippets.

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,
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 });
}
};
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) {
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 August 29, 2015 14:15
Works Of A Man Gone Mad
<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 February 24, 2015 09:06
Rainwave Preference Breakdown
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
var Rating = function() {
var self = {};
// blah blah
var RatingPrototype = {
onclick: function(e) { this.something(); }
};
self.create = function(json) {
if (json.something) { this.crap = "mglets"; }
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
div.song {
div.entry_votes {
display: none;
float: right;
padding-right: .5em;
color: $darktext;
}
&.now_playing, &.history {
div.entry_votes {
@rmcauley
rmcauley / SassMeister-input.scss
Created May 27, 2015 07:13
Generated by SassMeister.com.
// ----
// Sass (v3.4.13)
// Compass (v1.0.3)
// ----
div.song {
div.entry_votes {
display: none;
float: right;
padding-right: .5em;