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
m.request = function(xhrOptions) { | |
var deferred = m.deferred() | |
var serialize = xhrOptions.serialize = xhrOptions.serialize || JSON.stringify | |
var deserialize = xhrOptions.deserialize = xhrOptions.deserialize || JSON.parse | |
var extract = xhrOptions.extract || function(xhr) { | |
return xhr.responseText.length === 0 && deserialize === JSON.parse ? null : xhr.responseText | |
} | |
xhrOptions.onload = xhrOptions.onerror = function(e) { | |
e = e || event | |
var unwrap = (e.type == "load" ? xhrOptions.unwrapSuccess : xhrOptions.unwrapError) || identity |
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 System; | |
using System.Collections.Generic; | |
using UnityEngine; | |
class Player : MonoBehaviour { | |
public PlayerSettings settings = new PlayerSettings(); | |
public TextMesh tooltip = null; | |
PlayerInputManager input = null; | |
#region Player State |
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 prototypeOfArray = Array.prototype; | |
var prototypeOfObject = Object.prototype; | |
var _Array_slice_ = prototypeOfArray.slice; | |
var array_splice = Array.prototype.splice; | |
ArraySplice = function(start, deleteCount) { | |
var result | |
, args = _Array_slice_.call(arguments, 2) | |
, addElementsCount = args.length | |
; |
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
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use 5.10.0; | |
use Getopt::Long; | |
use Data::Dumper; | |
my $filename; | |
my $line_count = 0; |
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
/* | |
//@ sourceURL=static/js/lib/jquery.hacks.js | |
* | |
* from https://github.com/umdjs/umd/blob/master/jqueryPlugin.js | |
*/ | |
(function(factory) { | |
if ( typeof define === 'function' && define.amd) { | |
// AMD. Register as an anonymous module. | |
define(['jquery'], factory); | |
} else { |
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
# | |
# STL GDB evaluators/views/utilities - 1.03 | |
# | |
# The new GDB commands: | |
# are entirely non instrumental | |
# do not depend on any "inline"(s) - e.g. size(), [], etc | |
# are extremely tolerant to debugger settings | |
# | |
# This file should be "included" in .gdbinit as following: | |
# source stl-views.gdb or just paste it into your .gdbinit file |
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
#!/usr/bin/perl | |
#A script for encrypting part of a file before committing to git. | |
#Useful for storing passwords encrypted on places like github, but having the plaintext available locally. | |
# | |
#Requirements: gpg, perl >=5.14 | |
# | |
#Usage: | |
#- Create a gpg key for encrypting, passwordless. | |
#- Make sure crypt_pub.pl is executable and in $PATH | |
#- In your .git/config place: |
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
# ######################################################################### | |
# This bash script adds tab-completion feature to django-admin.py and | |
# manage.py. | |
# | |
# Testing it out without installing | |
# ================================= | |
# | |
# To test out the completion without "installing" this, just run this file | |
# directly, like so: | |
# |
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
diff --git a/java2python/compiler/visitor.py b/java2python/compiler/visitor.py | |
index 3b55e31..4ac6315 100644 | |
--- a/java2python/compiler/visitor.py | |
+++ b/java2python/compiler/visitor.py | |
@@ -470,7 +470,8 @@ class MethodContent(Base): | |
if len(children) == 3: | |
nextNode = children[2] | |
nextType = nextNode.type | |
- | |
+ |
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
from __future__ import division | |
import codecs,sys | |
from itertools import combinations, chain, permutations | |
from phonics import PHONEMES, phoneme as p, \ | |
Vowel, Consonant, Articulation as A, Position | |
art_pn = [A.PLOSIVE, A.NASAL] | |
art_al = [A.APPROX, A.LATERAL] | |
art_fp = [A.FRICATIVE, A.PLOSIVE] |
NewerOlder