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 sc={};sc.c=[];sc.a=-1;sc.p=-1;sc.j=false;sc.G=false;sc.I=function(){var a=document.getElementById("tads");a&&sc.i(a.childNodes);var b=document.getElementById("res");sc.i(b.childNodes);sc.P();sc.T(a||b);sc.h=sc.u();for(var c=0;c<sc.h.length;c++){sc.h[c].onfocus=sc.B;sc.h[c].onblur=sc.A}document.onkeypress=sc.D;document.onkeydown=sc.C;document.onkeyup=sc.F;var d=window.location.hash,f=d?parseInt(/[#]i=(-?\d*)/.exec(d)[1],10):0;sc.f(f==-1?sc.d-1:f)}; | |
sc.i=function(a){for(var b=0;b<a.length;b++){if(sc.J(a[b]))if(sc.K(sc.q(a[b])))continue;a[b].hasChildNodes()&&sc.i(a[b].childNodes)}}; | |
sc.K=function(a){if(a.b.tagName=="LI"&&/\bta.\b/.test(a.b.className)){sc.e(a);sc.G=true;return true}if(a.b.className=="p"){a.b=a.b.previousSibling;sc.e(a);return true}if((a.b.tagName=="DIV"||a.b.tagName=="LI"||a.b.tagName=="P")&&/\bg\b/.test(a.b.className)){sc.e(a);return true}if(a.b.tagName=="H2"&&a.b.className=="r"){sc.e(a);return true}if(a.b.tagName=="P"&&a.b.className=="e"){sc.e(a);return true}return false}; | |
sc.J=function(a){ |
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
" Search Dash for word under cursor | |
function! SearchDash() | |
let s:browser = "/usr/bin/open" | |
let s:wordUnderCursor = expand("<cword>") | |
let s:url = "dash://".s:wordUnderCursor | |
let s:cmd ="silent ! " . s:browser . " " . s:url | |
execute s:cmd | |
redraw! | |
endfunction | |
map <leader>d :call SearchDash()<CR> |
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
" Searches Dash for the word under your cursor in vim, using the keyword | |
" operator, based on file type. E.g. for JavaScript files, I have it | |
" configured to search j:term, which immediately brings up the JS doc | |
" for that keyword. Might need some customisation for your own keywords! | |
function! SearchDash() | |
" Some setup | |
let s:browser = "/usr/bin/open" | |
let s:wordUnderCursor = expand("<cword>") |
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
Process: Sketch [1549] | |
Path: /Applications/Sketch.app/Contents/MacOS/Sketch | |
Identifier: com.bohemiancoding.sketch | |
Version: 2.1.4 (2.1.4) | |
App Item ID: 402476602 | |
App External ID: 12045865 | |
Code Type: X86-64 (Native) | |
Parent Process: launchd [242] | |
User ID: 501 |
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
unmap <M-f> | |
"unmap f | |
set disablesites=www.google.com/reader/view, mail.google.com, duckduckgo.com, ibank.standardchartered.com.sg/nfs/breeze, yjfever.nfshost.com/fever, www.google.com/search | |
map j 7j | |
map k 7k | |
set editor=mvim -f | |
"set searchengines+={"duckduckgo":"http://duckduckgo.com/?q={{keyword}}"} | |
"set defaultsearch=duckduckgo |
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
// Where the social icons are in a 'social' subfolder in the images folder | |
// And the naming convention is footer-<servicename>.png / footer-<servicename>-active.png | |
@import "compass/utilities/sprites"; | |
$social-sprite-map: sprite-map('social/*.png'); | |
@mixin active-social($name) { | |
@include sprite-replace-text-with-dimensions($social-sprite-map, footer-#{$name}); | |
&:hover { | |
@include sprite-replace-text-with-dimensions($social-sprite-map, footer-#{$name}-active); |
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
Demo |
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
Demo |
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 com.example.spacepics;// Replace with your package name | |
import org.xml.sax.helpers.DefaultHandler; | |
import android.annotation.SuppressLint; | |
import android.graphics.*; | |
import android.os.StrictMode; | |
import javax.xml.parsers.*; | |
import org.xml.sax.*; |
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; | |
[RequireComponent(typeof(CharacterScript))] | |
public class EnemyAI : MonoBehaviour { | |
public enum EnemyState | |
{ | |
searching, |
OlderNewer