This file contains hidden or 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 main | |
import "fmt" | |
// reduce() function | |
func Reduce(f func(int, int) int, collection []int, init int) int { | |
value := init | |
for _, item := range collection { | |
value = f(value, item) |
This file contains hidden or 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
/* Person class */ | |
function Person() { } | |
Person.prototype.toString = function() { | |
return this.firstName + ", " + this.lastName; | |
} | |
/* Student class */ |
This file contains hidden or 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 name = 'World!'; | |
undefined | |
> (function () { | |
... if (typeof name === 'undefined') { | |
..... console.log('Goodbye ' + name); | |
..... } else { | |
..... console.log('Hello ' + name); | |
..... } | |
... })(); | |
Hello World! |
This file contains hidden or 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
2014-02-12 14:01:35 @aendu: Ich frage mich ja, wo die Wurzel DIESES Übels liegt. https://twitter.com/madmenna/status/433585834193715200 … | |
2014-02-12 13:58:13 @MadMenNa: Entschuldigung, aber das geht definitiv zu weit. https://twitter.com/andbhold/status/433563855596556289 … | |
2014-02-12 12:30:53 @andbhold: Jetzt fängt der @Ugugu auch noch an damit: https://twitter.com/Ugugu/status/433563375721660417 … | |
2014-02-12 12:28:58 @Ugugu: spinnen jetzt alle? https://twitter.com/patman27/status/433559982853066752 … | |
2014-02-12 12:15:29 @patman27: krass!! | |
https://twitter.com/sixtus/status/433558970494496768 … | |
2014-02-12 12:11:28 @sixtus: Boah! Nerv! Und jetzt auch noch das! https://twitter.com/ReichelS/status/433557896753082368 … | |
2014-02-12 12:07:12 @ReichelS: genau das ist der grund, warum twitter vor die hunde geht: https://twitter.com/mspro/status/433556778983624704 … | |
2014-02-12 12:02:45 @mspro: orrr, muss das sein? https://twitter.com/totalreflexion/status/433543227249926144 … | |
2014-02-12 11:08:54 @totalreflexion: Warum |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
""" | |
Tracing the twitter chain, down the rabbit hole. | |
Dependencies: | |
- requests | |
- beautifulsoup4 | |
""" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
cat /etc/supervisor/conf.d/radar.conf | grep environment | uniq | sed 's/environment=/export /' | sed 's/;/\nexport /g' | sed 's/%%/%/g' | sed 's/\$/\\\$/g' | head -n -1 |
This file contains hidden or 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
{ | |
"metadata": { | |
"name": "aes" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ | |
{ |
This file contains hidden or 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
dns6.pointhq.com | |
dns7.pointhq.com | |
dns2.pointhq.com |
This file contains hidden or 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
In [1]: from apps.swid.models import Tag | |
In [2]: s = Session.objects.latest() | |
QUERY = u'SELECT "sessions"."id", "sessions"."time", "sessions"."connection", "sessions"."identity", "sessions"."device", "sessions"."rec" FROM "sessions" ORDER BY "sessions"."time" DESC LIMIT 1' - PARAMS = () | |
Execution time: 0.004259s [Database: default] | |
In [3]: tags = Tag.get_installed_tags_with_time(s) | |
QUERY = u'SELECT "devices"."id", "devices"."value", "devices"."description", "devices"."product", "devices"."created", "devices"."trusted" FROM "devices" WHERE "devices"."id" = %s ' - PARAMS = (20,) |