Skip to content

Instantly share code, notes, and snippets.

View benmcnelly's full-sized avatar
🎯
Focusing

Ben McNelly benmcnelly

🎯
Focusing
View GitHub Profile
@benmcnelly
benmcnelly / bsc.html
Created November 27, 2018 18:39
Bootstrap Carousel
<div id="carouselExampleIndicators" class="carousel slide" data-ride="carousel">
<ol class="carousel-indicators">
{% if advertisment %}
{% for s in advertisment %}
<li data-target="#carouselExampleIndicators" data-slide-to="{{ forloop.counter0 }}" {% if forloop.first %} class="active" {% endif %}></li>
{% endfor %}
{% endif %}
</ol>

Keybase proof

I hereby claim:

  • I am benmcnelly on github.
  • I am benmcnelly (https://keybase.io/benmcnelly) on keybase.
  • I have a public key ASAUImNdpklz-_J4HEW1tJI31FpMqxSBxsYdNSSHdcjXOgo

To claim this, I am signing this object:

@benmcnelly
benmcnelly / keybase.mf
Created May 11, 2017 22:59
keybase.md
### Keybase proof
I hereby claim:
* I am benmcnelly on github.
* I am benmcnelly (https://keybase.io/benmcnelly) on keybase.
* I have a public key ASAUImNdpklz-_J4HEW1tJI31FpMqxSBxsYdNSSHdcjXOgo
To claim this, I am signing this object:
using UnityEngine;
using VRTK;
public class theRealDonaldTrump : MonoBehaviour {
void Start ()
{
//Does the thing being grabbed ( Mexican ) have the interactable object VRTK script attached...
if (GetComponent<VRTK_InteractableObject>() == null)
public string devUpdateUrl = "http://thefortawesome.com/static/fa_game/dev_update.png";
IEnumerator Start() {
Texture2D tex;
tex = new Texture2D(4, 4, TextureFormat.DXT1, false);
WWW www = new WWW(devUpdateUrl);
yield return www;
www.LoadImageIntoTexture(tex);
GetComponent<Renderer>().material.mainTexture = tex;
@media (max-width: 550px) {
.post-title {
width: 200px;
}
.post-date {
display: block;
width: 100px;
float: right;
}
}
! function() {
if (!window.hasCookieConsent) {
window.hasCookieConsent = !0;
var e = "cookieconsent_options",
t = "update_cookieconsent_options",
n = "cookieconsent_dismissed",
i = "//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/1.0.9/";
if (!(document.cookie.indexOf(n) > -1)) {
"function" != typeof String.prototype.trim && (String.prototype.trim = function() {
return this.replace(/^\s+|\s+$/g, "")
RESPONSE:
Time (milliseconds): 636.078
Code: 200
Headers:
Status200 OK
X-Frame-Optionssameorigin
Via1.1 vegur
X-City-Ratelimit-Remaining-By-Account9998
Content-Typeapplication/json; charset=utf-8
X-Xss-Protection1; mode=block
import json
import sqlite3
traffic = json.load(open('https://api.onthecity.org/ministries/2773260'))
db = mysql.connect("cccdatabase.mysql")
query = "insert into ministries values (?,?,?,?,?,?,?)"
columns = ['name', 'about', 'group', 'subgroup', 'image', 'link']
for timestamp, data in traffic.iteritems():
keys = (timestamp,) + tuple(data[c] for c in columns)
<?xml version="1.0" ?>
<Root>
<Person>
<Name>Ben</Name>
<Age>29</Age>
<Skills>
<Skill>Irritating</Skill>
<Skill>Trolling</Skill>
</Skills>
</Person>