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 useScrollRestoration from "utils/hooks/useScrollRestoration"; | |
const App = ({ Component, pageProps, router }) => { | |
useScrollRestoration(router); | |
return <Component {...pageProps} />; | |
}; | |
export default App; |
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
data:text/html, | |
<!-- See https://gist.github.com/svincent/699c0a9027bb6bc8298b076e638718f1/edit --> | |
<a id="link" title="Drag this link onto your bookmark bar to save!">save scratchpad</a> | |
<div id="editor" contenteditable>Type something here!<div>To save, drag the link in the top right onto your bookmark bar.</div></div> | |
<style> | |
:root { | |
--line-height: 1.5em; | |
} | |
* { |
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
## Unity ## | |
*.cs diff=csharp text | |
*.cginc text | |
*.shader text | |
*.mat merge=unityyamlmerge eol=lf | |
*.anim merge=unityyamlmerge eol=lf | |
*.unity merge=unityyamlmerge eol=lf | |
*.prefab merge=unityyamlmerge eol=lf |
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
using UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
public class goLevel : MonoBehaviour { | |
//With the @ before the string, we can split a long string in many lines without getting errors | |
private string json = @"{ | |
'hello':'world', | |
'foo':'bar', | |
'count':25 |
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 suggestCallBack; // global var for autocomplete jsonp | |
$(document).ready(function () { | |
$("#search").autocomplete({ | |
source: function(request, response) { | |
$.getJSON("http://suggestqueries.google.com/complete/search?callback=?", | |
{ | |
"hl":"en", // Language | |
"ds":"yt", // Restrict lookup to youtube | |
"jsonp":"suggestCallBack", // jsonp callback function name |