This is a SCRIPT-8 cassette.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override fun onCreateOptionsMenu(menu: Menu?): Boolean { | |
menuInflater.inflate(R.menu.mainmenu, menu) | |
whatsNewToolbarButton = menu!!.findItem(R.id.whatsNewToolbarButton) | |
setWhatsNewBadge(appnouncementsClient?.unseenReleaseNotesCount ?: 0) | |
return true | |
} | |
override fun onOptionsItemSelected(item: MenuItem?): Boolean { | |
if (item?.itemId == R.id.whatsNewToolbarButton) { | |
if (appnouncementsClient != null) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.task-rebuild:not([id*='Deploy']) { | |
display: none; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Fastmail Unsubscribe | |
// @namespace philipbjorge-fastmail-unsubscribe | |
// @include https://*.fastmail.com/* | |
// @include https://fastmail.com/* | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js | |
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js | |
// @version 1 | |
// @grant GM_addStyle | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package edu.wwu.cs412.tvfanatic; | |
import edu.wwu.cs412.tvfanatic.account.AccountPreferenceActivity; | |
import android.app.Activity; | |
import android.app.FragmentTransaction; | |
import android.app.SearchManager; | |
import android.app.FragmentManager.BackStackEntry; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.content.SharedPreferences; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Grammar for Python | |
# Note: Changing the grammar specified in this file will most likely | |
# require corresponding changes in the parser module | |
# (../Modules/parsermodule.c). If you can't make the changes to | |
# that module yourself, please co-ordinate the required changes | |
# with someone who can; ask around on python-dev for help. Fred | |
# Drake <[email protected]> will probably be listening there. | |
# NOTE WELL: You should also follow all the steps listed in PEP 306, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Python's set data structure is the only one without a literal | |
notation for an empty set. | |
http://excess.org/article/2012/11/python-container-literals/ | |
This is an ast transformer to add an empty set notation with the | |
following form: | |
empty_set = {_} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var parse = Clojure.parse; | |
console.log(parse("nil", {})); | |
console.log(parse("true", {})); | |
console.log(parse("hello world", {})); | |
console.log(parse("\C", {})); | |
console.log(parse('{:first "Fred" :last "Mertz"}', {})); | |
console.log(parse('(1 2 3 4)', {})); | |
console.log(parse('[1 2 "three" 4]', {})); | |
console.log(parse('#{1 2 3 1 2 3}', {})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Front End: | |
Run tests functionality (we can run every time they hit run) | |
Test output tab has a line for every line in the reference | |
Modify the html in static/custom/templates/Rayage.html to mess with test output contents | |
Run sends a message to server 'run_project_request'. We can hook off of that message handler to run the tests as well | |
Submit assignment | |
message to server: "submit_assigment" | |
Display feedback from professor/grader and state of files at submit-time | |
Codemirror: get the codemirror (editor) instance associated with the filename. codemirrorinstance.add_line_widget(comment) | |
See example with build errors. |
NewerOlder