Skip to content

Instantly share code, notes, and snippets.

View Xalior's full-sized avatar
🏳️‍🌈
Juggling all 8 bits at once...

D. Rimron-Soutter Xalior

🏳️‍🌈
Juggling all 8 bits at once...
View GitHub Profile
@taylorza
taylorza / ctctest.asm
Last active September 7, 2023 11:26
ZX Spectrum Next Samples
SLDOPT COMMENT WPMEM, LOGPOINT, ASSERTION
DEVICE ZXSPECTRUMNEXT
CSPECTMAP "ctctest.map"
org $8000
ctc0 equ $183b
main:
nextreg 7,0 ; set speed
var app = angular.module('validationExample', []);
app.controller('signupController', ['$scope', function($scope) {
$scope.submitted = false;
$scope.signupForm = function() {
if ($scope.signup_form.$valid) {
} else {
$scope.signup_form.submitted = true;
}
@davidadamsnippets
davidadamsnippets / gist:3827098
Created October 3, 2012 14:07
Query: CDN loading
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js"></script>
<script type="text/javascript">
if (typeof jQuery == 'undefined') {
document.write(unescape("%3Cscript src='jQuery.js'" + " type='text/javascript'%3E%3C/script%3E"));
}
</script>
@axelav
axelav / index.html
Created October 3, 2012 14:02
pure CSS under construction "gif"
<div class="construction"></div>
@mildfuzz
mildfuzz / facebook_test_user.js
Created October 3, 2012 14:00
Fetch Test Facebook User
var APP_ID = prompt("Input your App Id");
var APP_SECRET = prompt("Input your App Secret");
$.ajax({
url: "https://graph.facebook.com/oauth/access_token?client_id="+APP_ID+"&client_secret="+APP_SECRET+"&grant_type=client_credentials",
type: "GET",
success: function(data){
window.location = "https://graph.facebook.com/"+APP_ID+"/accounts/test-users?installed=false&locale=en_UK&permissions=read_stream&method=post&access_token="+data.replace('access_token=','');
}
})
@clarencesong
clarencesong / os-x-enable-trim.md
Last active September 28, 2023 17:03
Enable TRIM in OS X 10.7.5 to 10.9.5

Enable TRIM on non-Apple SSDs in OS X

NOTE: This is tested on the versions mentioned in the title, and NOT earlier or later versions. YMMV.

Run the following commands in Terminal…

Backup the original driver:

sudo cp /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage-backup
@jessefreeman
jessefreeman / player.js
Created July 10, 2011 13:50
Example of TileBased player movement for ImpactJS game framework.
ig.module(
'game.entities.player'
)
.requires(
'impact.entity'
)
.defines(function() {
EntityPlayer = ig.Entity.extend({