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 a = { | |
"37": "left", | |
"38": "up", | |
"39": "right", | |
"40": "down", | |
"65": "a", | |
"66": "b" | |
}; | |
$(document).on('keypress', function(e) { | |
if(a[e.which]) |
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
int nbelem = cptelemlist(list); | |
Element * temp = list->head; | |
for(int i = 0; i < nbelem; ++i) { | |
for(int j = 0; j < nbelem - 1; j++) { | |
if(compare (list,temp, getmotnext(temp))) | |
swap(list,temp,getmotnext(temp)); | |
temp = getmotnext(temp); | |
} | |
Element * temp = list->head; | |
} |
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
#!/bin/bash | |
# | |
# This is free and unencumbered software released into the public domain. | |
# | |
# Anyone is free to copy, modify, publish, use, compile, sell, or | |
# distribute this software, either in source code form or as a compiled | |
# binary, for any purpose, commercial or non-commercial, and by any | |
# means. | |
# | |
# In jurisdictions that recognize copyright laws, the author or authors |
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
$('#torturial-example-foreground').torturial([ | |
{ | |
steps: [ | |
{ | |
popovers: [ | |
{ | |
text: [ | |
"See that highlighted thing? ", | |
"I'd click that if I were you." | |
].join(''), |
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
$('#torturial-example-advanced-changeOn').torturial([ | |
{ | |
steps: [ | |
{ | |
popovers: [ | |
{ | |
id: 'changeOn-popover', | |
text: [ | |
"You can click me,<br />", | |
"but you can't kill me." |
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
$('#torturial-example-delay').torturial([ | |
{ | |
steps: [ | |
{ | |
popovers: [ | |
{ | |
text: [ | |
"Wait a few seconds. ", | |
"Five, to be precise." | |
].join(''), |
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
$('#torturial-example-changeOn').torturial([ | |
{ | |
steps: [ | |
{ | |
popovers: [ | |
{ | |
id: 'changeOn-popover', | |
text: [ | |
"<p>So let's start with a small one.</p>", | |
"<p>Just click me to close.</p>" |