This is a list of tips for the Vim editor
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 BetterEnum | |
* | |
* A pure-PHP alternative to SplEnum, although only a 99% compatible replacement for it. | |
* | |
* See: http://php.net/manual/en/class.splenum.php | |
* | |
* To declare an enum class, subclass BetterEnum and define the names and values as constants. |
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
digraph G { | |
label = "GitHub Workflow\nSource: https://goo.gl/79JCB9" | |
labelloc = "t" | |
subgraph cluster_upstream { | |
label = upstream | |
style = filled | |
color = lightgrey | |
node [style = filled color = white] |
An introduction to curl
using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
Includes HTTP-Header information in the output
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
From within the parent repo do
git submodule add [email protected]:iracooke/transcriptomes.git/wiki wiki
git commit -m "Adding wiki as submodule"
git push
Making changes to the wiki and to the parent require separate git commit commands.
Here are my attempts to script an IntelliJ-based IDE using javax.script.*
API (ex-JSR-223).
The list of available scripting languages and engines:
- Groovy - built-in, via Groovy jars and
<app>/lib/groovy-jsr223-xxx.jar
- JavaScript (Nashorn) - built-in, via Java Runtime
<app>/jbr/...
(deprecated and will be removed soon) - JavaScript (GraalJS) - https://plugins.jetbrains.com/plugin/12548-intellij-scripting-javascript
- JPython - https://plugins.jetbrains.com/plugin/12471-intellij-scripting-python
- JRuby - https://plugins.jetbrains.com/plugin/12549-intellij-scripting-ruby
- Clojure - https://plugins.jetbrains.com/plugin/12469-intellij-scripting-clojure
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
#list of people tweeting in brisbane | |
0092991 | |
009Rae | |
0114kyohei | |
01D7oom | |
036cd686bc1a4dc | |
0402595022a | |
0411makikkuma | |
0509yy | |
0516pikari |
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
""" I honestly don't even know how the hell this works, just use it. """ | |
__author__ = "Scott Stamp <[email protected]>" | |
from HTMLParser import HTMLParser | |
from urlparse import urljoin | |
from sys import setrecursionlimit | |
import re | |
import requests | |
setrecursionlimit(10000) |