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
| { | |
| "VCALENDAR": [ | |
| { | |
| "VERSION": "2.0", | |
| "PRODID": "-//f1timing v1.0//EN", | |
| "NAME": "Formula One Official Calendar", | |
| "X-WR-CALNAME": "Formula One Official Calendar", | |
| "VEVENT": [ | |
| { | |
| "UID": "f1cal48@formula1.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
| --- stack trace --- | |
| #0 0x00007fc243a50cc9 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56 | |
| resultvar = 0 | |
| pid = 14973 | |
| selftid = 18597 | |
| #1 0x00007fc243a540d8 in __GI_abort () at abort.c:89 | |
| save_stage = 2 | |
| act = {__sigaction_handler = {sa_handler = 0x7fc2240d8840, sa_sigaction = 0x7fc2240d8840}, sa_mask = {__val = {2, 18628, 140472386274647, 5, 0, 0, 140472335076648, 140471980504576, 18628, 11, 140472386303253, 0, 140472372118602, 0, 140471980499680, 6}}, sa_flags = 0, sa_restorer = 0x1} | |
| sigs = {__val = {32, 0 <repeats 15 times>}} | |
| #2 0x00000000005188f1 in safe_abort () at /opt/kurento/kurento-media-server/server/death_handler.cpp:299 |
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
| #!/bin/bash | |
| # Git post checkout hook. | |
| # Reminds you of South migration changes when switching branches. | |
| # Can be useful when you are when you are testing out a branch from | |
| # someone else that requires migrations. | |
| # Put the file in .git/hooks/post-checkout | |
| PREVIOUS_HEAD=$1 | |
| NEW_HEAD=$2 |
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
| You appear to be advocating a new: | |
| [ ] cloud-hosted [ ] locally installable [ ] web-based [ ] browser-based [ ] language-agnostic | |
| [ ] language-specific IDE. Your IDE will not succeed. Here is why it will not succeed. | |
| You appear to believe that: | |
| [ ] Syntax highlighting is what makes programming difficult | |
| [ ] Garbage collection is free | |
| [ ] Computers have infinite memory | |
| [ ] Nobody really needs: |
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
| # Username/password example | |
| # DAEMON_ARGS="-b -t -a \"*.*.*.*\" -e /var/log/transmission/transmission.log" | |
| # No username/password, but limited to 192.168.1.* | |
| # DAEMON_ARGS="-b -T -a \"192.168.1.*\" -e /var/log/transmission/transmission.log" | |
| INTERFACE=ppp0 | |
| if ifconfig $INTERFACE >>/dev/null 2>&1; then | |
| BIND_ADDR="`/sbin/ifconfig $INTERFACE | awk '$1 == \"inet\" {print $2}' | awk -F: '{print $2}'`" |
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 http = require('http'), | |
| xml2js = require('xml2js'), | |
| MongoClient = require('mongodb').MongoClient; | |
| var reqOptions = { | |
| host: "streamdb4web.securenetsystems.net", | |
| port: 80, | |
| path: "/player_status_update/KMYZ.xml?randStr=", | |
| method: "GET" | |
| }; |
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
| autocomplete.directive('typeahead', ['$compile', 'AutocompleteService', function ($compile, AutocompleteService) { | |
| return { | |
| restrict: 'A', | |
| priority: 999, | |
| link: function ($scope, elm, attrs) { | |
| $scope.getItems = function (filter, type, autocompletItems) { | |
| var fn = AutocompleteService.getLookupFunction(type, autocompletItems); | |
| return fn(filter); | |
| } | |
| } |
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
| autocomplete.directive('suggest', ['$compile', 'AutocompleteService', function ($compile, AutocompleteService) { | |
| var cnt = 0; | |
| return { | |
| require: '', | |
| restrict: 'A', | |
| replace: true, | |
| transclude: true, | |
| template: '<input ng-transclude type="text" autocomplete="off" typeahead="item for item in items" />', | |
| compile: function (elm, attrs) { |
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
| <?php | |
| $secret = base64_decode('kAIthWJeZ3UoS4k6qLIbfA=='); | |
| $label = base64_decode('L3JLyhzv0VTomcnzcDjoAhaMNCk='); | |
| $seed = base64_decode('yP9lu4OUF1ah534Re/ZfcQ=='); | |
| $newSeed = $label . $seed; // concat as strings | |
| $length = 16; | |
| // $p_sha1 |
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
| import re | |
| import sys | |
| import random | |
| import string | |
| import numpy as np | |
| import MySQLdb | |
| import MySQLdb.cursors | |
| DB_HOST = "localhost" | |
| DB_USER = "root" |